cepheus: CameraProvider: set saner values

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.
This commit is contained in:
John Galt
2025-02-07 11:51:45 -05:00
committed by balgxmr
parent 07a1b0c022
commit 4c20c50602

View File

@@ -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() {