Merge pull request #915 from cyberman54/development

slow down button loop
This commit is contained in:
Verkehrsrot 2022-11-06 19:11:08 +01:00 committed by GitHub
commit 5c21b989ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }
} }