Skip to content

Commit

Permalink
fix(PeriphDrivers): Fix bad logic on ME16 UART IDX checking in MXC_UA…
Browse files Browse the repository at this point in the history
…RT_SetClockSource (#1283)
  • Loading branch information
Brandon-Hurst authored Dec 3, 2024
1 parent 98f390c commit 9c8c137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/PeriphDrivers/Source/UART/uart_me16.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9c8c137

Please sign in to comment.