Optimizations when using low power mode (#608)
This commit is contained in:
1 parent
f23fcb672a
commit
a82bbe684a
8 files changed
+52
-44
No files matched your search
@@ -593,7 +593,6 @@ void coreTask(void *pvParameters)
|
||||
|
||||
void lowPowerESP32() // low power mode
|
||||
{
|
||||
stateMeasures(); // publish MQTT SYS data before going to sleep
|
||||
Log.trace(F("Going to deep sleep for: %l s" CR), (BLEinterval / 1000));
|
||||
deepSleep(BLEinterval * 1000);
|
||||
}
|
||||
@@ -604,7 +603,6 @@ void deepSleep(uint64_t time_in_us)
|
||||
sleepScreen();
|
||||
esp_sleep_enable_ext0_wakeup((gpio_num_t)SLEEP_BUTTON, LOW);
|
||||
#endif
|
||||
|
||||
|
||||
Log.trace(F("Deactivating ESP32 components" CR));
|
||||
esp_wifi_stop();
|
||||
@@ -644,8 +642,6 @@ void changelow_power_mode(int newLowPowerMode)
|
||||
|
||||
void setupBT()
|
||||
{
|
||||
BLEinterval = TimeBtw_Read;
|
||||
Minrssi = MinimumRSSI;
|
||||
Log.notice(F("BLEinterval: %d" CR), BLEinterval);
|
||||
Log.notice(F("Minrssi: %d" CR), Minrssi);
|
||||
Log.notice(F("Low Power Mode: %d" CR), low_power_mode);
|
||||
|
||||
Reference in new issue
Block a user