From 9e2d89f4ab55f770354549d7e4008c703d3e50d2 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Thu, 24 Apr 2025 10:45:36 +0800 Subject: Inc debounce time to 100ms. --- lock/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lock/util.c') diff --git a/lock/util.c b/lock/util.c index 683faa2..4f63625 100644 --- a/lock/util.c +++ b/lock/util.c @@ -7,7 +7,7 @@ int is_btn_pressed(uint8_t pin, uint8_t btn) { if (!((pin >> btn) & 0x01)) { - _delay_us(2000); + _delay_ms(100); return !((pin >> btn) & 0x01); } return 0; -- cgit v1.2.3