1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +03:00

Make serial port option checks consistent

This commit is contained in:
Nicholas Sherlock 2015-03-16 00:25:58 +13:00
parent 159f57f583
commit 344e8fbf04
2 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@ static void usartConfigurePinInversion(uartPort_t *uartPort) {
#if !defined(INVERTER) && !defined(STM32F303xC)
UNUSED(uartPort);
#else
bool inverted = (uartPort->port.options & SERIAL_INVERTED) == SERIAL_INVERTED;
bool inverted = uartPort->port.options & SERIAL_INVERTED;
#ifdef INVERTER
if (inverted && uartPort->USARTx == INVERTER_USART) {