From b247fa3ace08c9bd030d8070dd2588cfc6839b73 Mon Sep 17 00:00:00 2001 From: "Michael A. Cojocari" Date: Fri, 9 Oct 2026 08:59:09 -0400 Subject: [PATCH] Wio Tracker L2: Clock settings and the cold-boot time sync The Wio Tracker L2 has no battery-backed clock, so it gets the same opt-in saved-Wi-Fi time sync at power-on as the T-Deck (CAP_BOOT_TIME_SYNC / BootTimeSync). Split out of 4844a9b (Touch UI follow-ups 4). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- DEVICES.md | 4 +++- src/helpers/esp32/BootTimeSync.cpp | 5 +++-- src/ui-touch/device_caps.h | 5 +++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/DEVICES.md b/DEVICES.md index 30d5b2c..fa439c4 100644 --- a/DEVICES.md +++ b/DEVICES.md @@ -98,7 +98,9 @@ USB) and the [GitHub releases](https://github.com/ALLFATHER-BV/wadamesh/releases mode manually and retry, and please report it. - **Seeed Wio Tracker L2**: pre-release touch target under active bring-up. Builds are for development and hardware validation only; no public release artifact is - promised until the port is verified. + promised until the port is verified. It has no battery-backed clock, so the + same optional saved-Wi-Fi cold-boot time sync offered on T-Deck is available + in Clock settings. - **CrowPanel Advance 3.5**: `crowpanel_35_companion_radio_touch` is a 16 MB flash / 8 MB OPI PSRAM build for the ILI9488/GT911 panel and an SX1262 in the expansion slot. It starts upright in 480x320 landscape; Display diff --git a/src/helpers/esp32/BootTimeSync.cpp b/src/helpers/esp32/BootTimeSync.cpp index 2fab479..a9672ce 100644 --- a/src/helpers/esp32/BootTimeSync.cpp +++ b/src/helpers/esp32/BootTimeSync.cpp @@ -18,8 +18,9 @@ // the M9 (RTC integrity can be lost across its hard power cut). Keep the runtime // gate as narrow as the UI capability gate so a migrated preference file cannot // unexpectedly start Wi-Fi on another board. -// The T-Display P4 joins on its esp-hosted build (see CAP_BOOT_TIME_SYNC). -#if defined(HAS_TDECK_GT911) || defined(HAS_THINKNODE_M9) || \ +// The T-Display P4 joins on its esp-hosted build (see CAP_BOOT_TIME_SYNC), and the +// Wio Tracker L2 (no RTC) joins too. +#if defined(HAS_TDECK_GT911) || defined(HAS_THINKNODE_M9) || defined(HAS_WIO_TRACKER_L2) || \ (defined(HAS_TDISPLAY_P4) && TDP4_C6_HOSTED) #define BOOT_TIME_SYNC_SUPPORTED 1 #else diff --git a/src/ui-touch/device_caps.h b/src/ui-touch/device_caps.h index 98a3325..a56ba2f 100644 --- a/src/ui-touch/device_caps.h +++ b/src/ui-touch/device_caps.h @@ -284,9 +284,10 @@ // Both can opt into the bounded, pre-transport saved-Wi-Fi sync from #383. The // T-Display P4's PCF8563 has come back asserting impossible dates, so it gets the // same fallback -- on the esp-hosted C6 build only: the sync drives Arduino's real -// WiFi, which the legacy ESP-AT build must never touch. +// WiFi, which the legacy ESP-AT build must never touch. The Wio Tracker L2 has +// no RTC and an ESP32-S3 radio, so it gets the same opt-in. #if defined(HAS_TDECK_GT911) || defined(HAS_TDECK_PRO) || defined(HAS_THINKNODE_M9) || \ - (defined(HAS_TDISPLAY_P4) && TDP4_C6_HOSTED) + defined(HAS_WIO_TRACKER_L2) || (defined(HAS_TDISPLAY_P4) && TDP4_C6_HOSTED) #define CAP_BOOT_TIME_SYNC 1 #else #define CAP_BOOT_TIME_SYNC 0