Merge pull request #915 from cyberman54/development
slow down button loop
This commit is contained in:
commit
5c21b989ec
@ -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