Skip to content

Commit

Permalink
[K64F] serial_api.c: Fix #1979 assertion error for ParityEven
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Hogben committed Jun 28, 2016
1 parent 7bd9952 commit 9455e89
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ void serial_format(serial_t *obj, int data_bits, SerialParity parity, int stop_b
temp |= (UART_C1_PE_MASK | UART_C1_M_MASK);
if (parity == ParityOdd) {
temp |= UART_C1_PT_MASK;
} else if (parity == ParityEven) {
// PT=0 so nothing more to do
} else {
// Hardware does not support forced parity
MBED_ASSERT(0);
Expand Down

0 comments on commit 9455e89

Please sign in to comment.