am 342a2264: healthd: charger: fix check for charger connected to enter suspend

* commit '342a2264b96ab05dc8fdbfa8bbe354ce2f4b06ca':
  healthd: charger: fix check for charger connected to enter suspend
This commit is contained in:
Todd Poynor 2014-08-18 22:27:39 +00:00 committed by Android Git Automerger
commit b2a2acfaa6

View file

@ -383,7 +383,7 @@ static void update_screen_state(struct charger *charger, int64_t now)
charger->next_screen_transition = -1;
gr_fb_blank(true);
LOGV("[%" PRId64 "] animation done\n", now);
if (!charger->charger_connected)
if (charger->charger_connected)
request_suspend(true);
return;
}