sm6250-common: light: do not turn on breathing for unlit hardware states

Change-Id: I093fb2fb81012a473eda232d3c3407d0e0791907
This commit is contained in:
Demon000 2020-02-15 11:14:48 +00:00
parent 9cc256c981
commit 963ec1b29d

View File

@ -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: