mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Before resetting, clear the reboot schedule flag.
This commit is contained in:
parent
88683a4da3
commit
f46f50c223
1 changed files with 4 additions and 0 deletions
|
@ -1861,6 +1861,10 @@ void mspProcess(void)
|
||||||
waitForSerialPortToFinishTransmitting(candidatePort->port);
|
waitForSerialPortToFinishTransmitting(candidatePort->port);
|
||||||
stopMotors();
|
stopMotors();
|
||||||
handleOneshotFeatureChangeOnRestart();
|
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();
|
systemReset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue