STM32: align STM32 code with other platforms for tx_pause/tx_resume

This commit is contained in:
pascallanger
2016-10-27 11:15:25 +02:00
parent 909fb2eb2b
commit f56ca6318a
4 changed files with 39 additions and 47 deletions

View File

@@ -620,12 +620,10 @@ void TelemetryUpdate()
#endif
}
if (tx_tail == tx_head)
#ifdef STM32_BOARD
USART3_BASE->CR1 &= ~USART_CR1_TXEIE;//disable interrupt
}
#else
tx_pause(); // Check if all data is transmitted . if yes disable transmitter UDRE interrupt
#endif
#ifdef STM32_BOARD
}
#endif
}
#else //BASH_SERIAL