diff --git a/Libraries/PeriphDrivers/Source/UART/uart_me16.c b/Libraries/PeriphDrivers/Source/UART/uart_me16.c index 5d7e058a677..4894caf85b1 100644 --- a/Libraries/PeriphDrivers/Source/UART/uart_me16.c +++ b/Libraries/PeriphDrivers/Source/UART/uart_me16.c @@ -236,7 +236,7 @@ int MXC_UART_SetClockSource(mxc_uart_regs_t *uart, mxc_uart_clock_t clock) { uint8_t retval = E_NO_ERROR; - if (MXC_UART_GET_IDX(uart) != 0 || MXC_UART_GET_IDX(uart) != 2) { + if (MXC_UART_GET_IDX(uart) != 0 && MXC_UART_GET_IDX(uart) != 2) { return E_BAD_PARAM; }