Skip to content

Commit

Permalink
Fix for Rate dynamics MSP layer
Browse files Browse the repository at this point in the history
  • Loading branch information
DzikuVx committed Oct 4, 2023
1 parent bec12a9 commit 8249e77
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 8249e77

Please sign in to comment.