1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Merge pull request #10661 from klutvott123/msp-bytes-remaining-check-fix

MSP fix bytes remaining check
This commit is contained in:
Michael Keller 2021-04-26 15:39:07 +12:00
parent 4e4e4533df
commit 38fe23d483

View file

@ -2553,7 +2553,7 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
sbufReadU8(src);
#endif
}
if (sbufBytesRemaining(src) >= 1) {
if (sbufBytesRemaining(src) >= 2) {
#if defined(USE_GYRO_DATA_ANALYSE)
// Added in MSP API 1.43
gyroConfigMutable()->dyn_notch_max_hz = sbufReadU16(src);