diff --git a/src/main.c b/src/main.c index 8211bc6..3311f4e 100644 --- a/src/main.c +++ b/src/main.c @@ -379,6 +379,9 @@ int main(void) if((timebase_ms - charge_control_idle_since) > FLASH_CONFIG_DEEPSLEEP_DELAY) { low_power_mode(FLASH_CONFIG_DEEPSLEEP_DURATION); charge_control_was_idle = false; + + // correct the time base after deep sleep + timebase_ms += FLASH_CONFIG_DEEPSLEEP_DURATION * 1000; } } } else {