Loading charger/charger.c +4 −0 Original line number Diff line number Diff line Loading @@ -754,6 +754,10 @@ static int set_key_callback(int code, int value, void *data) if (code > KEY_MAX) return -1; /* ignore events that don't modify our state */ if (charger->keys[code].down == down) return -1; /* only record the down even timestamp, as the amount * of time the key spent not being pressed is not useful */ if (down) Loading Loading
charger/charger.c +4 −0 Original line number Diff line number Diff line Loading @@ -754,6 +754,10 @@ static int set_key_callback(int code, int value, void *data) if (code > KEY_MAX) return -1; /* ignore events that don't modify our state */ if (charger->keys[code].down == down) return -1; /* only record the down even timestamp, as the amount * of time the key spent not being pressed is not useful */ if (down) Loading