CF/BF - Fix MSP_SET_SERVO_CONFIGURATION.
In CF 1.x the structure was packed, resulting in a size of 14 bytes. The servoParam_t is not currently packed, likely due to recent PG group implementation, so the test for data length in the MSP command fails.
This commit is contained in:
parent
9ab02f1d38
commit
565993a3e8
|
@ -1544,7 +1544,7 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
||||||
|
|
||||||
case MSP_SET_SERVO_CONFIGURATION:
|
case MSP_SET_SERVO_CONFIGURATION:
|
||||||
#ifdef USE_SERVOS
|
#ifdef USE_SERVOS
|
||||||
if (dataSize != 1 + sizeof(servoParam_t)) {
|
if (dataSize != 1 + 14) {
|
||||||
return MSP_RESULT_ERROR;
|
return MSP_RESULT_ERROR;
|
||||||
}
|
}
|
||||||
i = sbufReadU8(src);
|
i = sbufReadU8(src);
|
||||||
|
|
Loading…
Reference in New Issue