sm8350-common: camera: Implement setTorchModeExt
Change-Id: Id61420be75b7efd1d13a4b0ee1d103ebd3835516 Signed-off-by: electimon <electimon@gmail.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
This commit is contained in:
parent
62e581ebbf
commit
bc536c0647
1 changed files with 5 additions and 0 deletions
|
|
@ -67,3 +67,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue