sm6250-common: light: do not turn on breathing for unlit hardware states
Change-Id: I093fb2fb81012a473eda232d3c3407d0e0791907
This commit is contained in:
parent
9cc256c981
commit
963ec1b29d
@ -95,6 +95,11 @@ static void handleNotification(const LightState& state) {
|
|||||||
|
|
||||||
/* Disable breathing or blinking */
|
/* Disable breathing or blinking */
|
||||||
set(WHITE_LED BREATH, 0);
|
set(WHITE_LED BREATH, 0);
|
||||||
|
set(WHITE_LED BRIGHTNESS, 0);
|
||||||
|
|
||||||
|
if (!whiteBrightness) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (state.flashMode) {
|
switch (state.flashMode) {
|
||||||
case Flash::HARDWARE:
|
case Flash::HARDWARE:
|
||||||
|
Loading…
Reference in New Issue
Block a user