Skip to content

UART receiver_buffer_size #1982

@ghost

Description

shared-bindings/busio/UART.h declares the type of receiver_buffer_size as uint8_t. This prevents defining buffers >255 bytes and results in strange error messages (e.g. for 256, "invalid size").

Changing the type to uint16_t (same as in py/ringbuf.h) fixes this (corresponding change required also in common-hal).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions