summaryrefslogtreecommitdiffstats
path: root/charger/charger.c
diff options
context:
space:
mode:
Diffstat (limited to 'charger/charger.c')
-rw-r--r--charger/charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/charger/charger.c b/charger/charger.c
index aface7e..03280bf 100644
--- a/charger/charger.c
+++ b/charger/charger.c
@@ -756,7 +756,7 @@ static int set_key_callback(int code, int value, void *data)
/* ignore events that don't modify our state */
if (charger->keys[code].down == down)
- return -1;
+ return 0;
/* only record the down even timestamp, as the amount
* of time the key spent not being pressed is not useful */