Merge "healthd: correct the led blinking indication condition"

This commit is contained in:
Linux Build Service Account 2015-11-16 23:13:18 -08:00 committed by Gerrit - the friendly Code Review server
commit f75e829268
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ void healthd_board_mode_charger_battery_update(
color = soc_leds[i].color; color = soc_leds[i].color;
if (old_color != color) { if (old_color != color) {
if ((color & HVDCP_COLOR_MAP) && blink) { if ((color == HVDCP_COLOR_MAP) && blink) {
if (blink_for_hvdcp & RED_LED) { if (blink_for_hvdcp & RED_LED) {
rc = write_file_int(RED_LED_BLINK_PATH, HVDCP_BLINK_TYPE); rc = write_file_int(RED_LED_BLINK_PATH, HVDCP_BLINK_TYPE);
if (rc < 0) { if (rc < 0) {