mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
fix PWM remaining active on soft reset.
This commit is contained in:
parent
6100e94aee
commit
68026f7c3e
5 changed files with 5 additions and 10 deletions
|
@ -1967,7 +1967,7 @@ void mspProcess(void)
|
|||
|
||||
if (isRebootScheduled) {
|
||||
waitForSerialPortToFinishTransmitting(candidatePort->port);
|
||||
stopMotors();
|
||||
stopPwmAllMotors();
|
||||
// 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue