You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I created my Serial toolkit it took some time to get int getchar_timeout_us (uint32_t timeout_us) working.
I failed to spot the return type was int and as I was expecting a byte back, used uint8_t. Only after a bit of debugging (all praise the PicoProbe) did I figure out my mistake.
Additionally, the values for PICO_ERROR_GENERIC and PICO_ERROR_TIMEOUT are not explicitly documented in the SDK pdf - there is the reference to the PICO_ERROR_ family but you don't find that if you search on the whole string. I ferreted them out of the source which was when I joined up the dots.
Activity