mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-12-22 01:01:42 +03:00
Add wake on charge event
This commit is contained in:
parent
90fdea29b8
commit
fc2241fbf4
@ -347,6 +347,9 @@ void SystemTask::Work() {
|
|||||||
case Messages::OnChargingEvent:
|
case Messages::OnChargingEvent:
|
||||||
batteryController.Update();
|
batteryController.Update();
|
||||||
motorController.RunForDuration(15);
|
motorController.RunForDuration(15);
|
||||||
|
if (isSleeping && !isWakingUp) {
|
||||||
|
GoToRunning();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case Messages::MeasureBatteryTimerExpired:
|
case Messages::MeasureBatteryTimerExpired:
|
||||||
sendBatteryNotification = true;
|
sendBatteryNotification = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user