From 461bee601896339f06b5a92f9bcbc98c7aacdbab Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Fri, 7 Aug 2026 10:46:32 -0500 Subject: [PATCH] fix: activate SPI DMA for STM32H7 targets spiInitBusDMA() (bus_spi.c) already guards STM32H7 alongside F4/F7, but USE_SPI_DMA_ENABLE_LATE was only defined for STM32F4/STM32F7 in common_fc_pre.h (PR #1348), so H7 targets never reached the fc_init.c call site. Adds the same define for the STM32H7 block, matching the existing F4/F7 pattern. No STM32H7 USE_GYRO_IMUF9001 target exists, so this doesn't interact with the SPI1-exclusion guard added by PR #1359. Closes #1353 --- src/main/target/common_fc_pre.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/target/common_fc_pre.h b/src/main/target/common_fc_pre.h index 82e77f1cdb..1fef38132c 100644 --- a/src/main/target/common_fc_pre.h +++ b/src/main/target/common_fc_pre.h @@ -97,6 +97,7 @@ #define USE_USB_MSC #define I2C3_OVERCLOCK true #define I2C4_OVERCLOCK true +#define USE_SPI_DMA_ENABLE_LATE #endif #if defined(STM32F4) || defined(STM32F7) || defined(STM32H7)