Skip to content

Commit

Permalink
cepheus: CameraProvider: set saner values
Browse files Browse the repository at this point in the history
500 is WAAAAY too high on op7 series. Set max to a saner of 200.

Also prior to this change, 80 was default for torch, so set 80 as
default.
  • Loading branch information
RealJohnGalt authored and balgxmr committed Feb 8, 2025
1 parent 07a1b0c commit 4c20c50
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions camera/CameraProviderExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,12 @@ bool supportsSetTorchModeExt() {
}

int32_t getTorchDefaultStrengthLevelExt() {
return 50;
return 80;
}

int32_t getTorchMaxStrengthLevelExt() {
// In our device, both LEDs has same maximum value
// so get from one.
auto node = kTorchLedPaths[0] + "/" + TORCH_MAX_BRIGHTNESS;
return get(node, 0);
// 200 (out of 500) is a sane max brightness
return 200;
}

int32_t getTorchStrengthLevelExt() {
Expand Down

0 comments on commit 4c20c50

Please sign in to comment.