Commit 0f63ba4
committed
Fix delay function for lower delays
The debounce feature expects the button to be held for a minimum amount of time
to register a button press. This caused the delay function to always return 0
(no button presses) for very short delays. It will now return 1 for short
delays iff the button was pressed/held during that time.1 parent d5a4e34 commit 0f63ba4
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
139 | 147 | | |
140 | 148 | | |
141 | 149 | | |
| |||
0 commit comments