diff options
Diffstat (limited to 'project/Core')
| -rw-r--r-- | project/Core/Src/Project/local_control.c | 4 |
1 files 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++; |
