1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +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:
Michael Keller 2018-09-05 09:54:37 +12:00 committed by GitHub
commit 1217893676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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