Skip to content

Commit

Permalink
Fixed serialization in MSP_MOTOR command.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbudden committed Feb 1, 2016
1 parent 4a9e90b commit 6a4823a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/io/serial_msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,10 @@ static bool processOutCommand(uint8_t cmdMSP)
break;
#endif
case MSP_MOTOR:
s_struct((uint8_t *)motor, 16);
headSerialReply(16);
for (i = 0; i < 8; i++) {
serialize16(i < MAX_SUPPORTED_MOTORS ? motor[i] : 0);
}
break;
case MSP_RC:
headSerialReply(2 * rxRuntimeConfig.channelCount);
Expand Down

0 comments on commit 6a4823a

Please sign in to comment.