Skip to content

Commit

Permalink
Update serial_api.c
Browse files Browse the repository at this point in the history
Fix number of stop bits in serial_format()
  • Loading branch information
0x4E656F00 committed Mar 11, 2015
1 parent e61148d commit 1519466
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void serial_format(serial_t *obj, int data_bits, SerialParity parity, int stop_b
UART_HAL_SetBitCountPerChar(uart_addrs[obj->index], (uart_bit_count_per_char_t)data_bits);
UART_HAL_SetParityMode(uart_addrs[obj->index], (uart_parity_mode_t)parity);
#if FSL_FEATURE_UART_HAS_STOP_BIT_CONFIG_SUPPORT
UART_HAL_SetStopBitCount(uart_addrs[obj->index], (uart_stop_bit_count_t)stop_bits);
UART_HAL_SetStopBitCount(uart_addrs[obj->index], (uart_stop_bit_count_t)--stop_bits);
#endif
}

Expand Down

0 comments on commit 1519466

Please sign in to comment.