diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-24 10:45:36 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-24 10:45:36 +0800 |
| commit | 9e2d89f4ab55f770354549d7e4008c703d3e50d2 (patch) | |
| tree | 3ddc26da12525afa3745153013d8dd957137faca | |
| parent | 4bd8f90cb08f15403125fdeef175a3800b9dabd5 (diff) | |
| download | smart-home-9e2d89f4ab55f770354549d7e4008c703d3e50d2.tar.gz | |
Inc debounce time to 100ms.
| -rw-r--r-- | lock/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
