Spacewar: camera: Implement setTorchModeExt

Change-Id: Id61420be75b7efd1d13a4b0ee1d103ebd3835516
Signed-off-by: electimon <electimon@gmail.com>
Signed-off-by: Jis G Jacob <studiokeys@blissroms.org>
This commit is contained in:
bengris32
2024-10-08 07:29:59 +00:00
committed by nyxalune
parent 07752625fb
commit 0ae35d08d3

View File

@@ -75,3 +75,8 @@ void setTorchStrengthLevelExt(int32_t torchStrength) {
if (torchStrength > 0)
set(TOGGLE_SWITCH, 255);
}
void setTorchModeExt(bool enabled) {
int32_t strength = getTorchDefaultStrengthLevelExt();
setTorchStrengthLevelExt(enabled ? strength : 0);
}