From 6084986cabe53f6b628165cdd0c07e245f02a9f2 Mon Sep 17 00:00:00 2001 From: sowgro Date: Wed, 17 Dec 2025 01:01:59 -0500 Subject: fix local control for new systick speed --- project/Core/Src/Project/local_control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/Core/Src/Project/local_control.c b/project/Core/Src/Project/local_control.c index 235a5a9..68316ca 100644 --- a/project/Core/Src/Project/local_control.c +++ b/project/Core/Src/Project/local_control.c @@ -38,7 +38,7 @@ void local_control_loop() { hold_pending = 0; player_stop(); } - if (last_press && now - last_press > 1000) { + if (last_press && now - last_press > 1000000) { last_press = 0; switch(click_count) { case 1: @@ -87,7 +87,7 @@ void handle_press(int pressed) { time_down = now; } else { putchar(0); // I don't know why but without this it still bounces sometimes - if ((now - time_down) < 1000) { + if ((now - time_down) < 1000000) { time_down = 0; last_press = now; click_count++; -- cgit v1.2.3