summaryrefslogtreecommitdiff
path: root/project/Core/Src
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-12-17 01:01:59 -0500
committersowgro <tpoke.ferrari@gmail.com>2025-12-17 01:01:59 -0500
commit6084986cabe53f6b628165cdd0c07e245f02a9f2 (patch)
tree923dd09811263cb8f67e1a95678b9d7c3c020595 /project/Core/Src
parent3c1ec5b8ccde29f0c1c6733de863733f55b65139 (diff)
download340-repo-Sowgro-6084986cabe53f6b628165cdd0c07e245f02a9f2.tar.gz
340-repo-Sowgro-6084986cabe53f6b628165cdd0c07e245f02a9f2.tar.bz2
340-repo-Sowgro-6084986cabe53f6b628165cdd0c07e245f02a9f2.zip
fix local control for new systick speed
Diffstat (limited to 'project/Core/Src')
-rw-r--r--project/Core/Src/Project/local_control.c4
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++;