davinci: 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 committed by Arian
parent 13a3863832
commit 25523a776d
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9

View File

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