Skip to content

Commit

Permalink
samsung: hidl: light: battery has lowest priority
Browse files Browse the repository at this point in the history
Change-Id: I90d61439f8a431f1836e439d34764b7eb7983db9
  • Loading branch information
Stricted committed Aug 7, 2019
1 parent 519e3c5 commit 7ffb495
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hidl/light/Light.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,7 @@ void Light::setNotificationLED() {
bool bln = false;
#endif

if (mBatteryState.color & COLOR_MASK) {
adjusted_brightness = LED_BRIGHTNESS_BATTERY;
state = mBatteryState;
} else if (mNotificationState.color & COLOR_MASK) {
if (mNotificationState.color & COLOR_MASK) {
adjusted_brightness = LED_BRIGHTNESS_NOTIFICATION;
state = mNotificationState;
#ifdef LED_BLN_NODE
Expand All @@ -144,6 +141,9 @@ void Light::setNotificationLED() {
if (state.flashMode == Flash::NONE) {
state.color = 0;
}
} else if (mBatteryState.color & COLOR_MASK) {
adjusted_brightness = LED_BRIGHTNESS_BATTERY;
state = mBatteryState;
} else {
set(LED_BLINK_NODE, "0x00000000 0 0");
return;
Expand Down

0 comments on commit 7ffb495

Please sign in to comment.