mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Fix UITask.cpp compilation errors on ESP32-S3 with PIN_USER_BTN_ANA
This commit is contained in:
parent
d4d98ebbbe
commit
0dabed3c40
1 changed files with 2 additions and 2 deletions
|
|
@ -740,8 +740,8 @@ void UITask::loop() {
|
|||
}
|
||||
#endif
|
||||
#if defined(PIN_USER_BTN_ANA)
|
||||
if (abs(millis() - _analogue_pin_read_millis) > 10) {
|
||||
ev = analog_btn.check();
|
||||
if ((long)(millis() - _analogue_pin_read_millis) > 10) {
|
||||
int ev = analog_btn.check();
|
||||
if (ev == BUTTON_EVENT_CLICK) {
|
||||
c = checkDisplayOn(KEY_NEXT);
|
||||
} else if (ev == BUTTON_EVENT_LONG_PRESS) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue