mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
Merge pull request #10661 from klutvott123/msp-bytes-remaining-check-fix
MSP fix bytes remaining check
This commit is contained in:
parent
4e4e4533df
commit
38fe23d483
1 changed files with 1 additions and 1 deletions
|
@ -2553,7 +2553,7 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
|
||||||
sbufReadU8(src);
|
sbufReadU8(src);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (sbufBytesRemaining(src) >= 1) {
|
if (sbufBytesRemaining(src) >= 2) {
|
||||||
#if defined(USE_GYRO_DATA_ANALYSE)
|
#if defined(USE_GYRO_DATA_ANALYSE)
|
||||||
// Added in MSP API 1.43
|
// Added in MSP API 1.43
|
||||||
gyroConfigMutable()->dyn_notch_max_hz = sbufReadU16(src);
|
gyroConfigMutable()->dyn_notch_max_hz = sbufReadU16(src);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue