Spacewar: CameraProvider: set saner values

Set max to a saner of 200.

Also prior to this change, 80 was default for torch, so set 80 as
default.

Signed-off-by: Jis G Jacob <studiokeys@blissroms.org>
This commit is contained in:
John Galt
2025-02-07 11:51:45 -05:00
committed by nyxalune
parent cb57c98d7d
commit b31209173f

View File

@@ -48,14 +48,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() {