1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Fix no motor outputs when bi-directional dshot is disabled (the

default).

The issue is that the DMA is never enabled, and thus the DMA IRQ handler
was never called either.
This commit is contained in:
Dominic Clifton 2021-07-30 22:40:55 +02:00
parent 41109e52aa
commit f3bda6a4a1

View file

@ -605,22 +605,21 @@ static void bbUpdateComplete(void)
} }
#endif #endif
#ifdef USE_DSHOT_TELEMETRY
for (int i = 0; i < usedMotorPorts; i++) { for (int i = 0; i < usedMotorPorts; i++) {
bbPort_t *bbPort = &bbPorts[i]; bbPort_t *bbPort = &bbPorts[i];
#ifdef USE_DSHOT_TELEMETRY
if (useDshotTelemetry) { if (useDshotTelemetry) {
if (bbPort->direction == DSHOT_BITBANG_DIRECTION_INPUT) { if (bbPort->direction == DSHOT_BITBANG_DIRECTION_INPUT) {
bbPort->inputActive = false; bbPort->inputActive = false;
bbSwitchToOutput(bbPort); bbSwitchToOutput(bbPort);
} }
bbDMA_Cmd(bbPort, ENABLE);
} }
}
#endif #endif
bbDMA_Cmd(bbPort, ENABLE);
}
lastSendUs = micros(); lastSendUs = micros();
for (int i = 0; i < usedMotorPacers; i++) { for (int i = 0; i < usedMotorPacers; i++) {
bbPacer_t *bbPacer = &bbPacers[i]; bbPacer_t *bbPacer = &bbPacers[i];