Skip to content

Commit

Permalink
Merge pull request #9340 from iNavFlight/dzikuvx-fix-rate-dynamics-msp
Browse files Browse the repository at this point in the history
Fix for Rate dynamics MSP layer
  • Loading branch information
DzikuVx authored Oct 4, 2023
2 parents bec12a9 + 8249e77 commit 9647605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/fc/fc_msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3059,7 +3059,7 @@ static mspResult_e mspFcProcessInCommand(uint16_t cmdMSP, sbuf_t *src)

case MSP2_INAV_SET_RATE_DYNAMICS:

if (dataSize == 8) {
if (dataSize == 6) {
((controlRateConfig_t*)currentControlRateProfile)->rateDynamics.sensitivityCenter = sbufReadU8(src);
((controlRateConfig_t*)currentControlRateProfile)->rateDynamics.sensitivityEnd = sbufReadU8(src);
((controlRateConfig_t*)currentControlRateProfile)->rateDynamics.correctionCenter = sbufReadU8(src);
Expand Down

0 comments on commit 9647605

Please sign in to comment.