1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

optionally guard uart1 for ppm, depends on #1290

This commit is contained in:
nathan 2016-10-10 22:54:24 -07:00
parent c287ad47dd
commit 3c5beffb99
4 changed files with 25 additions and 16 deletions

View file

@ -97,8 +97,12 @@ serialPort_t *uartOpen(USART_TypeDef *USARTx, serialReceiveCallbackPtr callback,
{
uartPort_t *s = NULL;
if (USARTx == USART1) {
if (false) {
#ifdef USE_UART1
} else if (USARTx == USART1) {
s = serialUART1(baudRate, mode, options);
#endif
#ifdef USE_UART2
} else if (USARTx == USART2) {
s = serialUART2(baudRate, mode, options);