slow down button loop
This commit is contained in:
parent
367882ab93
commit
bdbf6092e8
@ -29,7 +29,7 @@ void longPressStart(void) {
|
|||||||
void buttonLoop(void *parameter) {
|
void buttonLoop(void *parameter) {
|
||||||
while (1) {
|
while (1) {
|
||||||
doIRQ(BUTTON_IRQ);
|
doIRQ(BUTTON_IRQ);
|
||||||
delay(20);
|
delay(50); // 50 is debounce time of OneButton lib, so doesn't hurt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user