1
0
forked from iarv/Meck

Compare commits

...

1 Commits

Author SHA1 Message Date
pelgraine 5bdcbb25b6 "Fix fix BLE shutdown on hibernate, update version in mymesh" 2026-01-29 19:01:38 +11:00
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
#endif #endif
#ifndef FIRMWARE_VERSION #ifndef FIRMWARE_VERSION
#define FIRMWARE_VERSION "Meck v0.3.1" #define FIRMWARE_VERSION "Meck v0.4"
#endif #endif
#if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM) #if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM)
+7
View File
@@ -16,6 +16,13 @@ class TDeckBoard : public ESP32Board {
public: public:
void begin(); 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) { void enterDeepSleep(uint32_t secs, int pin_wake_btn) {
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_ON); esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_ON);