From a8614bac70f94e098817c2afd3e37aa388c8a9d9 Mon Sep 17 00:00:00 2001 From: Englebert <=> Date: Fri, 24 Sep 2021 22:58:26 +0800 Subject: [PATCH] Fixed issue #7194, The DSHOT direction command requires repeats = 10 rather 6 to get the right spin direction. --- src/main/drivers/pwm_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/drivers/pwm_output.c b/src/main/drivers/pwm_output.c index 7861984ced..f084c19a21 100644 --- a/src/main/drivers/pwm_output.c +++ b/src/main/drivers/pwm_output.c @@ -357,7 +357,7 @@ static int getDShotCommandRepeats(dshotCommands_e cmd) { switch (cmd) { case DSHOT_CMD_SPIN_DIRECTION_NORMAL: case DSHOT_CMD_SPIN_DIRECTION_REVERSED: - repeats = 6; + repeats = 10; break; default: break;