From a79840bef8260f19d736c5dc4767691fcdca871d Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Mon, 28 Mar 2022 00:16:23 +0200 Subject: [PATCH] Fix [Bidirectional] DShot issues on H7 by reducing GPIO speed --- src/main/drivers/dshot_bitbang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/drivers/dshot_bitbang.c b/src/main/drivers/dshot_bitbang.c index e3fa21af38..8045019829 100644 --- a/src/main/drivers/dshot_bitbang.c +++ b/src/main/drivers/dshot_bitbang.c @@ -751,7 +751,7 @@ motorDevice_t *dshotBitbangDevInit(const motorDevConfig_t *motorConfig, uint8_t #if defined(STM32F4) || defined(STM32F3) bbMotors[motorIndex].iocfg = IO_CONFIG(GPIO_Mode_OUT, GPIO_Speed_50MHz, GPIO_OType_PP, bbPuPdMode); #elif defined(STM32F7) || defined(STM32G4) || defined(STM32H7) - bbMotors[motorIndex].iocfg = IO_CONFIG(GPIO_MODE_OUTPUT_PP, GPIO_SPEED_FREQ_VERY_HIGH, bbPuPdMode); + bbMotors[motorIndex].iocfg = IO_CONFIG(GPIO_MODE_OUTPUT_PP, GPIO_SPEED_FREQ_LOW, bbPuPdMode); #endif IOInit(io, OWNER_MOTOR, RESOURCE_INDEX(motorIndex));