mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Fixed USB MSC activation over MSP. Also fixed fallthrough in case of invalid reboot type.
This commit is contained in:
parent
d63878aebc
commit
858c55af74
2 changed files with 4 additions and 7 deletions
|
@ -268,7 +268,7 @@ static void mspRebootFn(serialPort_t *serialPort)
|
|||
#endif
|
||||
default:
|
||||
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
// control should never return here.
|
||||
|
@ -1547,7 +1547,7 @@ static mspResult_e mspFcProcessOutCommandWithArg(uint8_t cmdMSP, sbuf_t *src, sb
|
|||
|
||||
if (rebootMode >= MSP_REBOOT_COUNT
|
||||
#if !defined(USE_USB_MSC)
|
||||
|| rebootMode == MSP_REBOOT_MSC
|
||||
|| rebootMode == MSP_REBOOT_MSC || rebootMode == MSP_REBOOT_MSC_UTC
|
||||
#endif
|
||||
) {
|
||||
return MSP_RESULT_ERROR;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue