mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Merge pull request #6696 from etracer65/msp_usb_hid_fix
Fix USB HID parameter support in MSP_SET_RX_CONFIG msp message
This commit is contained in:
commit
1217893676
1 changed files with 4 additions and 0 deletions
|
@ -2145,6 +2145,10 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
||||||
sbufReadU8(src);
|
sbufReadU8(src);
|
||||||
sbufReadU8(src);
|
sbufReadU8(src);
|
||||||
#endif
|
#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)
|
#if defined(USE_USB_CDC_HID)
|
||||||
usbDevConfigMutable()->type = sbufReadU8(src);
|
usbDevConfigMutable()->type = sbufReadU8(src);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue