Skip to content

Document that sys.stdin.read() replaces Carriage Return characters with New line characters. #554

@tballas

Description

@tballas

This issue might serve as partial documentation.

This took a lot of digging to find. A carriage return \r received over usb serial is replaced with a new line character \n when read with e.g. sys.stdin.read(1).

The source of the change seems to be the stdio_read() function in \lib\utils\sys_stdio_mphal.c

The reason for this behavior is unclear.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions