Before resetting, clear the reboot schedule flag.
This commit is contained in:
parent
88683a4da3
commit
f46f50c223
|
@ -1861,6 +1861,10 @@ void mspProcess(void)
|
|||
waitForSerialPortToFinishTransmitting(candidatePort->port);
|
||||
stopMotors();
|
||||
handleOneshotFeatureChangeOnRestart();
|
||||
// On real flight controllers, systemReset() will do a soft reset of the device,
|
||||
// reloading the program. But to support offline testing this flag needs to be
|
||||
// cleared so that the software doesn't continuously attempt to reboot itself.
|
||||
isRebootScheduled = false;
|
||||
systemReset();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue