From 6550b41388587ffbde502e095a18f0dc90196730 Mon Sep 17 00:00:00 2001 From: RoarFPV Date: Fri, 17 Jun 2022 20:53:01 -0700 Subject: [PATCH] Make sure to write dshot stop cmd to all other motors when targeting less than max motor count (cherry picked from commit 6a7d2c37889aa5663b1906d6466263d19e321744) --- src/main/drivers/dshot_command.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/drivers/dshot_command.c b/src/main/drivers/dshot_command.c index afa8341fd..0b7dec3a2 100644 --- a/src/main/drivers/dshot_command.c +++ b/src/main/drivers/dshot_command.c @@ -223,6 +223,8 @@ void dshotCommandWrite(uint8_t index, uint8_t motorCount, uint8_t command, dshot motorDmaOutput_t *const motor = getMotorDmaOutput(i); motor->protocolControl.requestTelemetry = true; motorGetVTable().writeInt(i, command); + } else { + motorGetVTable().writeInt(i, DSHOT_CMD_MOTOR_STOP); } } -- 2.11.4.GIT