From ffc970b03e8032da115ca8e053f2a6f9e63e0af1 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 20 Apr 2024 19:49:11 +0200 Subject: [PATCH] fix: button timeout (debounce) --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0a8ed4d..32f2481 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ use esp_hal::systimer::SystemTimer; use panic_halt as _; -const BUTTON_TIMEOUT: u64 = SystemTimer::TICKS_PER_SECOND / 10; +const BUTTON_TIMEOUT: u64 = SystemTimer::TICKS_PER_SECOND / 5; const COLORS: [[u8; 3]; 6] = [ // G B R