From 38fe23d483d480cf87457c8c7421000d8ac3629a Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Mon, 26 Apr 2021 15:39:07 +1200 Subject: [PATCH] Merge pull request #10661 from klutvott123/msp-bytes-remaining-check-fix MSP fix bytes remaining check --- src/main/msp/msp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/msp/msp.c b/src/main/msp/msp.c index 9720c9c067..87ec13411f 100644 --- a/src/main/msp/msp.c +++ b/src/main/msp/msp.c @@ -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);