diff options
Diffstat (limited to 'src/machine/machine_mimxrt1062_uart.go')
-rw-r--r-- | src/machine/machine_mimxrt1062_uart.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/machine/machine_mimxrt1062_uart.go b/src/machine/machine_mimxrt1062_uart.go index bb43f4be5..b61fd04f0 100644 --- a/src/machine/machine_mimxrt1062_uart.go +++ b/src/machine/machine_mimxrt1062_uart.go @@ -45,11 +45,6 @@ func (uart *UART) resetTransmitting() { uart.Bus.GLOBAL.ClearBits(nxp.LPUART_GLOBAL_RST) } -func (uart *UART) usesConfig(c UARTConfig) bool { - return uart.configured && uart.baud == c.BaudRate && - uart.rx == c.RX && uart.tx == c.TX -} - // Configure initializes a UART with the given UARTConfig and other default // settings. func (uart *UART) Configure(config UARTConfig) { @@ -67,11 +62,6 @@ func (uart *UART) Configure(config UARTConfig) { config.TX = UART_TX_PIN } - // Do not reconfigure pins and device buffers if duplicate config provided. - if uart.usesConfig(config) { - return - } - uart.baud = config.BaudRate uart.rx = config.RX uart.tx = config.TX |