1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Fix USB HID parameter support in MSP_SET_RX_CONFIG msp message

Workaround to make the firmware tolerant of missing Configurator support in versions 10.4.1 or less. Will still work properly when Configurator support is added.
This commit is contained in:
Bruce Luckcuck 2018-09-04 16:44:44 -04:00
parent baaaaf9d8f
commit a39f9480d9

View file

@ -2145,6 +2145,10 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
sbufReadU8(src);
sbufReadU8(src);
#endif
}
if (sbufBytesRemaining(src) >= 1) {
// Added in MSP API 1.40
// Kept separate from the section above to work around missing Configurator support in version < 10.4.2
#if defined(USE_USB_CDC_HID)
usbDevConfigMutable()->type = sbufReadU8(src);
#else