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

F1 uses ref, not channel

This commit is contained in:
jflyper 2017-06-25 18:32:01 +09:00
parent 697e5d3925
commit 1dc5486e02

View file

@ -109,7 +109,7 @@ void uart_tx_dma_IRQHandler(dmaChannelDescriptor_t* descriptor)
{ {
uartPort_t *s = (uartPort_t*)(descriptor->userParam); uartPort_t *s = (uartPort_t*)(descriptor->userParam);
DMA_CLEAR_FLAG(descriptor, DMA_IT_TCIF); DMA_CLEAR_FLAG(descriptor, DMA_IT_TCIF);
DMA_Cmd(descriptor->channel, DISABLE); // XXX F1 needs this!!! DMA_Cmd(descriptor->ref, DISABLE); // XXX F1 needs this!!!
uartTryStartTxDMA(s); uartTryStartTxDMA(s);
} }