DAPLink icon indicating copy to clipboard operation
DAPLink copied to clipboard

uart.c constant comparison issues

Open b4yuan opened this issue 1 year ago • 0 comments

In multiple uart.c files:

line 164 in source/hic_hal/freescale/kl27z/uart.c: line 149 in source/hic_hal/freescale/kl26z/uart.c: line 140 in source/hic_hal/freescale/kl26z/uart.c: line 134 in source/hic_hal/freescale/k20dx/uart.c:

The comparison if (data_bits == 2) { is made, but data_bits is always <= 1; the comparison will always resolve to false.

b4yuan avatar Aug 02 '23 18:08 b4yuan