mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +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
|
@ -2574,7 +2574,7 @@ static void cliRebootEx(bool bootLoader)
|
|||
cliPrint("\r\nRebooting");
|
||||
bufWriterFlush(cliWriter);
|
||||
waitForSerialPortToFinishTransmitting(cliPort);
|
||||
stopMotors();
|
||||
stopPwmAllMotors();
|
||||
if (bootLoader) {
|
||||
systemResetToBootloader();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue