From 0dabed3c407428eb5951e4dfb007d8152020c715 Mon Sep 17 00:00:00 2001 From: Piero Andreini Date: Mon, 30 Mar 2026 23:04:49 +0200 Subject: [PATCH] Fix UITask.cpp compilation errors on ESP32-S3 with PIN_USER_BTN_ANA --- examples/companion_radio/ui-new/UITask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index 94a8ee3e..c98f3ead 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -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) {