Skip to content

Commit fc2241f

Browse files
committed
Add wake on charge event
1 parent 90fdea2 commit fc2241f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/systemtask/SystemTask.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ void SystemTask::Work() {
347347
case Messages::OnChargingEvent:
348348
batteryController.Update();
349349
motorController.RunForDuration(15);
350+
if (isSleeping && !isWakingUp) {
351+
GoToRunning();
352+
}
350353
break;
351354
case Messages::MeasureBatteryTimerExpired:
352355
sendBatteryNotification = true;

0 commit comments

Comments
 (0)