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

Commit d8aa8ab7 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "charger: allow home button to wake" into jellybean

parents feb666d4 1323e370
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -870,6 +870,9 @@ static void process_key(struct charger *charger, int code, int64_t now)
            if (key->pending)
                kick_animation(charger->batt_anim);
        }
    } else {
        if (key->pending)
            kick_animation(charger->batt_anim);
    }

    key->pending = false;
@@ -878,6 +881,7 @@ static void process_key(struct charger *charger, int code, int64_t now)
static void handle_input_state(struct charger *charger, int64_t now)
{
    process_key(charger, KEY_POWER, now);
    process_key(charger, KEY_HOME, now);

    if (charger->next_key_check != -1 && now > charger->next_key_check)
        charger->next_key_check = -1;