Loading charger/charger.c +4 −0 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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; Loading Loading
charger/charger.c +4 −0 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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; Loading