1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Fix MSP_SET_SERVO_CONFIGURATION data length

Trivial bug introduced when angleAtMin and angleAtMax was deleted.

Should have been caught if configurator was tested (should have came up
as a length error).
This commit is contained in:
jflyper 2017-08-05 16:41:38 +09:00
parent ac03d2983b
commit 00ccce06b7

View file

@ -1447,7 +1447,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 + 14) { if (dataSize != 1 + 12) {
return MSP_RESULT_ERROR; return MSP_RESULT_ERROR;
} }
i = sbufReadU8(src); i = sbufReadU8(src);