From 0b81b26ce024dbc270ac6fad8b58674aeccbe465 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Tue, 15 Dec 2020 16:00:23 +0100 Subject: [PATCH] Fixed MSP command to send Dshot commands. --- src/main/cli/cli.c | 6 ------ src/main/msp/msp.c | 1 - 2 files changed, 7 deletions(-) diff --git a/src/main/cli/cli.c b/src/main/cli/cli.c index c4ac3970ab..f2d030dc27 100644 --- a/src/main/cli/cli.c +++ b/src/main/cli/cli.c @@ -3850,12 +3850,6 @@ static void cliDshotProg(const char *cmdName, char *cmdline) // pwmDisableMotors(); motorDisable(); - if (command == DSHOT_CMD_ESC_INFO) { - delay(5); // Wait for potential ESC telemetry transmission to finish - } else { - delay(1); - } - firstCommand = false; } diff --git a/src/main/msp/msp.c b/src/main/msp/msp.c index 06e364090a..1ef33e4825 100644 --- a/src/main/msp/msp.c +++ b/src/main/msp/msp.c @@ -3020,7 +3020,6 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP, for (uint8_t i = 0; i < commandCount; i++) { const uint8_t commandIndex = sbufReadU8(src); dshotCommandWrite(motorIndex, getMotorCount(), commandIndex, commandType); - delay(1); } if (DSHOT_CMD_TYPE_BLOCKING == commandType) {