1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 20:10:18 +03:00

Fixed MSP command to send Dshot commands.

This commit is contained in:
Michael Keller 2020-12-15 16:00:23 +01:00
parent d43e06d3e3
commit 0b81b26ce0
2 changed files with 0 additions and 7 deletions

View file

@ -3850,12 +3850,6 @@ static void cliDshotProg(const char *cmdName, char *cmdline)
// pwmDisableMotors(); // pwmDisableMotors();
motorDisable(); motorDisable();
if (command == DSHOT_CMD_ESC_INFO) {
delay(5); // Wait for potential ESC telemetry transmission to finish
} else {
delay(1);
}
firstCommand = false; firstCommand = false;
} }

View file

@ -3020,7 +3020,6 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
for (uint8_t i = 0; i < commandCount; i++) { for (uint8_t i = 0; i < commandCount; i++) {
const uint8_t commandIndex = sbufReadU8(src); const uint8_t commandIndex = sbufReadU8(src);
dshotCommandWrite(motorIndex, getMotorCount(), commandIndex, commandType); dshotCommandWrite(motorIndex, getMotorCount(), commandIndex, commandType);
delay(1);
} }
if (DSHOT_CMD_TYPE_BLOCKING == commandType) { if (DSHOT_CMD_TYPE_BLOCKING == commandType) {