From 5bdcbb25b6859b18eb10eae7552a160b4160d2ac Mon Sep 17 00:00:00 2001 From: pelgraine <140762863+pelgraine@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:01:38 +1100 Subject: [PATCH] "Fix fix BLE shutdown on hibernate, update version in mymesh" --- examples/companion_radio/MyMesh.h | 2 +- variants/lilygo_tdeck_pro/TDeckBoard.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/companion_radio/MyMesh.h b/examples/companion_radio/MyMesh.h index 0fa34e8..e4cb0a2 100644 --- a/examples/companion_radio/MyMesh.h +++ b/examples/companion_radio/MyMesh.h @@ -12,7 +12,7 @@ #endif #ifndef FIRMWARE_VERSION -#define FIRMWARE_VERSION "Meck v0.3.1" +#define FIRMWARE_VERSION "Meck v0.4" #endif #if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM) diff --git a/variants/lilygo_tdeck_pro/TDeckBoard.h b/variants/lilygo_tdeck_pro/TDeckBoard.h index 42e8403..ddeb5bb 100644 --- a/variants/lilygo_tdeck_pro/TDeckBoard.h +++ b/variants/lilygo_tdeck_pro/TDeckBoard.h @@ -16,6 +16,13 @@ class TDeckBoard : public ESP32Board { public: void begin(); + void powerOff() override { + // Stop Bluetooth before power off + btStop(); + // Don't call parent or enterDeepSleep - let normal shutdown continue + // Display will show "hibernating..." text + } + void enterDeepSleep(uint32_t secs, int pin_wake_btn) { esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_ON);