mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Fix compilation when building without USE_DSHOT_TELEMETRY
This commit is contained in:
parent
7b4415f062
commit
f179c6435b
1 changed files with 2 additions and 2 deletions
|
@ -172,8 +172,8 @@ FAST_CODE static void motor_DMA_IRQHandler(dmaChannelDescriptor_t* descriptor)
|
||||||
{
|
{
|
||||||
if (DMA_GET_FLAG_STATUS(descriptor, DMA_IT_TCIF)) {
|
if (DMA_GET_FLAG_STATUS(descriptor, DMA_IT_TCIF)) {
|
||||||
motorDmaOutput_t * const motor = &dmaMotors[descriptor->userParam];
|
motorDmaOutput_t * const motor = &dmaMotors[descriptor->userParam];
|
||||||
if (!motor->isInput) {
|
|
||||||
#ifdef USE_DSHOT_TELEMETRY
|
#ifdef USE_DSHOT_TELEMETRY
|
||||||
|
if (!motor->isInput) {
|
||||||
dshotDMAHandlerCycleCounters.irqAt = getCycleCounter();
|
dshotDMAHandlerCycleCounters.irqAt = getCycleCounter();
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_DSHOT_DMAR
|
#ifdef USE_DSHOT_DMAR
|
||||||
|
@ -195,8 +195,8 @@ FAST_CODE static void motor_DMA_IRQHandler(dmaChannelDescriptor_t* descriptor)
|
||||||
LL_EX_TIM_EnableIT(motor->timerHardware->tim, motor->timerDmaSource);
|
LL_EX_TIM_EnableIT(motor->timerHardware->tim, motor->timerDmaSource);
|
||||||
dshotDMAHandlerCycleCounters.changeDirectionCompletedAt = getCycleCounter();
|
dshotDMAHandlerCycleCounters.changeDirectionCompletedAt = getCycleCounter();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
DMA_CLEAR_FLAG(descriptor, DMA_IT_TCIF);
|
DMA_CLEAR_FLAG(descriptor, DMA_IT_TCIF);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue