Skip to content

stmhal: USB_VCP when used as a stream is always in non-blocking mode, this should be documented #1530

@pfalcon

Description

@pfalcon

At least documented, if not allow setting timeout.

STATIC mp_uint_t pyb_usb_vcp_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) {
    int ret = USBD_CDC_Rx((byte*)buf, size, 0);

0 is timeout parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions