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

Workaround for DSHOT motor test

This commit is contained in:
borisbstyle 2016-10-22 02:02:15 +02:00
parent 449d26efee
commit 8a959d356a
4 changed files with 1 additions and 7 deletions

View file

@ -649,7 +649,7 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn
#endif
case MSP_MOTOR:
for (unsigned i = 0; i < 8; i++) {
sbufWriteU16(dst, i < MAX_SUPPORTED_MOTORS ? motor[i] : 0);
sbufWriteU16(dst, i < MAX_SUPPORTED_MOTORS ? constrain(motor[i], 1, 2047) : 0); // TODO - Fix 0 handling in the configurator. This is just a workaround
}
break;
case MSP_RC: