summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-01-12 14:21:50 -0800
committerStefan Agner <stefan.agner@toradex.com>2016-01-12 14:21:50 -0800
commitbe2c754274e797d85d1073e5e480c8d34143b709 (patch)
tree98aac6cbd0dfa8555e468fb0144c4ae95ea4aac6
parenta57cc2c988482010061b9e68344fdf1969889763 (diff)
drivers: uart_imx: fix modem mode
Fix assertion in modem mode to allow using DTE mode.
-rw-r--r--platform/drivers/src/uart_imx.c2
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