summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 171acaaded..0d0d1cd7ad 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -69,14 +69,14 @@ static bool remote_filter_first_keypress;
static bool phones_present = false;
#endif
-/* how long until repeat kicks in, in ticks */
-#define REPEAT_START 30
+/* how long until repeat kicks in, in centiseconds */
+#define REPEAT_START (30*HZ/100)
-/* the speed repeat starts at, in ticks */
-#define REPEAT_INTERVAL_START 16
+/* the speed repeat starts at, in centiseconds */
+#define REPEAT_INTERVAL_START (16*HZ/100)
-/* speed repeat finishes at, in ticks */
-#define REPEAT_INTERVAL_FINISH 5
+/* speed repeat finishes at, in centiseconds */
+#define REPEAT_INTERVAL_FINISH (5*HZ/100)
#ifdef HAVE_BUTTON_DATA
static int button_read(int *data);