Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 342a2264 authored by Todd Poynor's avatar Todd Poynor
Browse files

healthd: charger: fix check for charger connected to enter suspend

Logic for this check was inadvertently reversed when porting this from
the charger daemon to healthd.  Request suspend if a charegr is connected,
else stay out of suspend waiting for a charger connect or power off if
none.

Bug: 17112463
Change-Id: Iffdb6dbcd0d0a2a614ff8f50bf5f2e22e1ad552f
parent 82b76249
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }