1
0
forked from me/IronOS

Clean up power calls

This commit is contained in:
Ben V. Brown
2020-05-30 12:43:32 +10:00
parent 5bb85a4a32
commit 05b43dfa1c
5 changed files with 52 additions and 12 deletions

View File

@@ -25,6 +25,8 @@ uint32_t lastMovementTime = 0;
void startMOVTask(void const *argument __unused) {
OLED::setRotation(true);
postRToSInit();
power_probe();
while (pidTaskNotification == 0) osDelay(30); // Wait for PID to start
OLED::setRotation(systemSettings.OrientationMode & 1);
lastMovementTime = 0;
@@ -86,6 +88,6 @@ void startMOVTask(void const *argument __unused) {
}
osDelay(100); // Slow down update rate
QC_resync();
power_check();
}
}