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:
parent
159f57f583
commit
344e8fbf04
2 changed files with 5 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue