Merge pull request #728 from hubmartin/charge-wake
Add wake-up on charge event
This commit is contained in:
commit
c99feeea31
|
@ -347,6 +347,10 @@ void SystemTask::Work() {
|
||||||
case Messages::OnChargingEvent:
|
case Messages::OnChargingEvent:
|
||||||
batteryController.Update();
|
batteryController.Update();
|
||||||
motorController.RunForDuration(15);
|
motorController.RunForDuration(15);
|
||||||
|
ReloadIdleTimer();
|
||||||
|
if (isSleeping && !isWakingUp) {
|
||||||
|
GoToRunning();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case Messages::MeasureBatteryTimerExpired:
|
case Messages::MeasureBatteryTimerExpired:
|
||||||
sendBatteryNotification = true;
|
sendBatteryNotification = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user