"Fix fix BLE shutdown on hibernate, update version in mymesh"

This commit is contained in:
pelgraine
2026-01-29 19:01:38 +11:00
parent 53fe89b216
commit 5bdcbb25b6
2 changed files with 8 additions and 1 deletions

View File

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

View File

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