Closed nerdralph closed 4 years ago
When reviewing the the example, I noticed what looks like debug code. https://github.com/Blinkinlabs/ch554_sdcc/blob/master/examples/usb_device_cdc/main.c#L613
I tested with a ch552 using a loopback resistor between TXD1 and RXD1 (P1.7/P1.6), and received an extra 'H' character for every character I typed. Instead of removing the debug code, I changed it to compile only when DEBUG is defined.
Any comments?
Did you forget this?
Good catch!
When reviewing the the example, I noticed what looks like debug code. https://github.com/Blinkinlabs/ch554_sdcc/blob/master/examples/usb_device_cdc/main.c#L613
I tested with a ch552 using a loopback resistor between TXD1 and RXD1 (P1.7/P1.6), and received an extra 'H' character for every character I typed. Instead of removing the debug code, I changed it to compile only when DEBUG is defined.