Skip to content

Mixture of data types causing brain failure #129

@HeadBoffin

Description

@HeadBoffin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions