diff --git a/src/main/drivers/dshot_bitbang.c b/src/main/drivers/dshot_bitbang.c index 072306437e..e53d48e91e 100644 --- a/src/main/drivers/dshot_bitbang.c +++ b/src/main/drivers/dshot_bitbang.c @@ -548,22 +548,21 @@ static void bbUpdateComplete(void) } } -#ifdef USE_DSHOT_TELEMETRY for (int i = 0; i < usedMotorPorts; i++) { bbPort_t *bbPort = &bbPorts[i]; +#ifdef USE_DSHOT_TELEMETRY if (useDshotTelemetry) { if (bbPort->direction == DSHOT_BITBANG_DIRECTION_INPUT) { bbPort->inputActive = false; bbSwitchToOutput(bbPort); } - - - bbDMA_Cmd(bbPort, ENABLE); } - } #endif + bbDMA_Cmd(bbPort, ENABLE); + } + lastSendUs = micros(); for (int i = 0; i < usedMotorPacers; i++) { bbPacer_t *bbPacer = &bbPacers[i]; diff --git a/src/main/drivers/memprot_stm32h7xx.c b/src/main/drivers/memprot_stm32h7xx.c index 05b3a67f9d..49772f7d0c 100644 --- a/src/main/drivers/memprot_stm32h7xx.c +++ b/src/main/drivers/memprot_stm32h7xx.c @@ -45,6 +45,7 @@ mpuRegion_t mpuRegions[] = { .bufferable = MPU_ACCESS_BUFFERABLE, }, #endif +#ifdef USE_DMA_RAM { // DMA transmit buffer in D2 SRAM1 // Reading needs cache coherence operation @@ -57,7 +58,6 @@ mpuRegion_t mpuRegions[] = { .cacheable = MPU_ACCESS_CACHEABLE, .bufferable = MPU_ACCESS_NOT_BUFFERABLE, }, -#ifdef USE_SDCARD_SDIO { // A region in AXI RAM accessible from SDIO internal DMA .start = (uint32_t)&dmarwaxi_start,