Skip to content

Commit

Permalink
Revert "Allow for F7 UART idle preamble to be sent on startup - 4.4-m…
Browse files Browse the repository at this point in the history
…aintenance (betaflight#13022)"

This reverts commit c51762d.
  • Loading branch information
haslinghuis committed Sep 20, 2023
1 parent 4b410bd commit 2f4948e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/drivers/serial_uart_stm32f7xx.c
Expand Up @@ -377,9 +377,9 @@ uartPort_t *serialUART(UARTDevice_e device, uint32_t baudRate, portMode_e mode,
IOInit(txIO, OWNER_SERIAL_TX, RESOURCE_INDEX(device));

if ((options & SERIAL_INVERTED) == SERIAL_NOT_INVERTED) {
uartdev->txPinState = TX_PIN_MONITOR;
// Switch TX to UART output whilst UART sends idle preamble
checkUsartTxOutput(s);
uartdev->txPinState = TX_PIN_ACTIVE;
// Switch TX to an input with pullup so it's state can be monitored
uartTxMonitor(s);
} else {
IOConfigGPIOAF(txIO, IOCFG_AF_PP, uartdev->tx.af);
}
Expand Down

0 comments on commit 2f4948e

Please sign in to comment.