Improve Select button response when Long Press is enabled during CPU-intensive apps (WFM) (#1304)

* Long press

* Long-press improvement during CPU-intensive apps

* Long-press improvement during CPU-intensive apps
This commit is contained in:
Mark Thompson 2023-07-24 22:45:24 -05:00 committed by GitHub
parent 3514a9a608
commit ea238f4988
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 31 deletions

View file

@ -228,6 +228,7 @@ void controls_init() {
switch_debounce[toUType(i)].enable_repeat();
}
// Note: Called by event handler or apps, not in ISR, so some presses might be missed during high CPU utilization
SwitchesState get_switches_state() {
SwitchesState result;