From be5e647c6a42ee040632fdc226730d895fb61d07 Mon Sep 17 00:00:00 2001 From: ZephCore T096 Date: Sat, 5 Sep 2026 03:19:58 +0200 Subject: [PATCH] board: fix double-press confirm window on WT2 and V4.3 Both emit ENTER via a zephyr,input-longpress filter (single button), same category the Kconfig help text already documents as needing CONFIG_ZEPHCORE_UI_CONFIRM_WINDOW_MS=3000 instead of the 500ms default -- two ~1s holds don't fit in 500ms, so the second long press on shutdown/DFU/offgrid always arrives after the window closed and just re-arms instead of confirming. T096 already had this set (board.conf:38); WT2 and V4.3 didn't, apparently missed when their board.conf was written. --- zephcore/boards/esp32/heltec_wifi_lora32_v43/board.conf | 5 +++++ zephcore/boards/esp32/heltec_wireless_tracker_v2/board.conf | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/zephcore/boards/esp32/heltec_wifi_lora32_v43/board.conf b/zephcore/boards/esp32/heltec_wifi_lora32_v43/board.conf index aaf038b..cc65409 100644 --- a/zephcore/boards/esp32/heltec_wifi_lora32_v43/board.conf +++ b/zephcore/boards/esp32/heltec_wifi_lora32_v43/board.conf @@ -23,3 +23,8 @@ CONFIG_ZEPHCORE_SX126X_HELTEC_REG_PATCH=y # Measured (MeshCore issue #1708, GC1109 data — KCT8103L similar): TX=18 → ~27 dBm # radiated, practical efficiency peak. TX=10 → ~20 dBm; TX=22 saturates same as TX=18. CONFIG_ZEPHCORE_DEFAULT_TX_POWER_DBM=12 + +# Single button, ENTER emitted via a zephyr,input-longpress filter (see +# board.overlay): the default 500ms double-press confirm window (shutdown/ +# DFU/offgrid) is too short for two ~1s holds, see Kconfig help text. +CONFIG_ZEPHCORE_UI_CONFIRM_WINDOW_MS=3000 diff --git a/zephcore/boards/esp32/heltec_wireless_tracker_v2/board.conf b/zephcore/boards/esp32/heltec_wireless_tracker_v2/board.conf index 8d62d4e..ce2e875 100644 --- a/zephcore/boards/esp32/heltec_wireless_tracker_v2/board.conf +++ b/zephcore/boards/esp32/heltec_wireless_tracker_v2/board.conf @@ -23,3 +23,8 @@ CONFIG_ZEPHCORE_SX126X_HELTEC_REG_PATCH=y # the PA enabled. The module is physically capable of higher output; start # conservative to avoid overdriving the front end. CONFIG_ZEPHCORE_DEFAULT_TX_POWER_DBM=9 + +# Single button, ENTER emitted via a zephyr,input-longpress filter (see +# board.overlay): the default 500ms double-press confirm window (shutdown/ +# DFU/offgrid) is too short for two ~1s holds, see Kconfig help text. +CONFIG_ZEPHCORE_UI_CONFIRM_WINDOW_MS=3000