diff --git a/src/power_utils.cpp b/src/power_utils.cpp index a349071..c7ba6f5 100644 --- a/src/power_utils.cpp +++ b/src/power_utils.cpp @@ -271,6 +271,7 @@ namespace POWER_Utils { delay(1000); BATTERY_Utils::setup(); BATTERY_Utils::startupBatteryHealth(); + setCpuFrequencyMhz(80); } } \ No newline at end of file diff --git a/src/sleep_utils.cpp b/src/sleep_utils.cpp index 8766e00..aa2f97f 100644 --- a/src/sleep_utils.cpp +++ b/src/sleep_utils.cpp @@ -51,6 +51,9 @@ namespace SLEEP_Utils { uint32_t timeToSleep = getSecondsToSleep(); esp_sleep_enable_timer_wakeup(timeToSleep * 1000000); // 1 min = 60sec Serial.print("(Sleeping : "); Serial.print(timeToSleep); Serial.println("seconds)"); + + //esp_sleep_enable_timer_wakeup(getSecondsToSleep() * 1000000); // 1 min = 60sec + delay(100); LoRa_Utils::wakeRadio(); esp_light_sleep_start(); diff --git a/src/station_utils.cpp b/src/station_utils.cpp index 4ff1ddb..8c89dff 100644 --- a/src/station_utils.cpp +++ b/src/station_utils.cpp @@ -184,7 +184,6 @@ namespace STATION_Utils { } } if (saveNewDigiEcoModeConfig) { - //setCpuFrequencyMhz(80); Config.writeFile(); delay(1000); displayToggle(false);