1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +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 committed by GitHub
commit 5f2c29c725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2666,7 +2666,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);