Before resetting, clear the reboot schedule flag.

This commit is contained in:
JOhn Aughey 2016-05-06 10:40:17 -05:00
parent 88683a4da3
commit f46f50c223
1 changed files with 4 additions and 0 deletions

View File

@ -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();
}
}