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

Commit cf5c32c2 authored by Devin Kim's avatar Devin Kim Committed by Iliyan Malchev
Browse files

charger: Do not suspend when disconnecting from charger

The device should be power off when disconnecting from charger.
If the device enter to suspend, the device couldn't handle the power off
process. So the device shouldn't suspend to handle the power off at that time

Bug: 7429504
Change-Id: I9a0a60e53f315cd83550dc730a33bc7bd464ef67
parent dec27f6e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -704,6 +704,7 @@ static void update_screen_state(struct charger *charger, int64_t now)
        charger->next_screen_transition = -1;
        gr_fb_blank(true);
        LOGV("[%lld] animation done\n", now);
        if (charger->num_supplies_online > 0)
            request_suspend(true);
        return;
    }