Add wake on charge event

This commit is contained in:
hubmartin 2021-10-08 16:53:49 +02:00
parent 90fdea29b8
commit fc2241fbf4

View file

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