diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-01-12 14:21:50 -0800 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2016-01-12 14:21:50 -0800 |
commit | be2c754274e797d85d1073e5e480c8d34143b709 (patch) | |
tree | 98aac6cbd0dfa8555e468fb0144c4ae95ea4aac6 /platform/drivers/src/uart_imx.c | |
parent | a57cc2c988482010061b9e68344fdf1969889763 (diff) |
drivers: uart_imx: fix modem mode
Fix assertion in modem mode to allow using DTE mode.
Diffstat (limited to 'platform/drivers/src/uart_imx.c')
-rw-r--r-- | platform/drivers/src/uart_imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/drivers/src/uart_imx.c b/platform/drivers/src/uart_imx.c index 3c5149d..f86d559 100644 --- a/platform/drivers/src/uart_imx.c +++ b/platform/drivers/src/uart_imx.c @@ -389,7 +389,7 @@ void UART_SetCtsPinLevel(UART_Type* base, bool active) *END**************************************************************************/ void UART_SetModemMode(UART_Type* base, uint32_t mode) { - assert((uartModemModeDce & uartModemModeDce) || (uartModemModeDce & uartModemModeDte)); + assert((mode == uartModemModeDce) || (mode == uartModemModeDte)); if (uartModemModeDce == mode) UART_UFCR_REG(base) &= ~UART_UFCR_DCEDTE_MASK; else |