Merge pull request #728 from hubmartin/charge-wake

Add wake-up on charge event
This commit is contained in:
JF
2021-10-09 20:04:27 +02:00
committed by GitHub

View File

@@ -347,6 +347,10 @@ void SystemTask::Work() {
case Messages::OnChargingEvent:
batteryController.Update();
motorController.RunForDuration(15);
ReloadIdleTimer();
if (isSleeping && !isWakingUp) {
GoToRunning();
}
break;
case Messages::MeasureBatteryTimerExpired:
sendBatteryNotification = true;