davinci: light: Do not turn on breathing for unlit hardware states
Change-Id: I093fb2fb81012a473eda232d3c3407d0e0791907
This commit is contained in:
parent
13a3863832
commit
25523a776d
@ -95,6 +95,11 @@ static void handleNotification(const LightState& state) {
|
||||
|
||||
/* Disable breathing or blinking */
|
||||
set(NOTIFICATION_LED BREATH, 0);
|
||||
set(NOTIFICATION_LED BRIGHTNESS, 0);
|
||||
|
||||
if (!notificationBrightness) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (state.flashMode) {
|
||||
case Flash::HARDWARE:
|
||||
|
Loading…
Reference in New Issue
Block a user