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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user