Fix UITask.cpp compilation errors on ESP32-S3 with PIN_USER_BTN_ANA

This commit is contained in:
Piero Andreini 2026-03-30 23:04:49 +02:00
parent d4d98ebbbe
commit 0dabed3c40

View file

@ -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) {