raspberrypi / pico-sdk

BSD 3-Clause "New" or "Revised" License
3.26k stars 838 forks source link

Fix stdio_set_chars_available_callback for usb #1649

Closed peterharperuk closed 1 month ago

peterharperuk commented 4 months ago

When you get a callback to tell you a character is available, you should be able to call getchar_timeout_us, but it's not working for USB

Fixes #1603

peterharperuk commented 4 months ago

Fixed. Messy.