[Bug] stdin inserts extra 0x06 at start of every write command #1052
Labels
bug
Something isn't working
software: pybricks-micropython
Issues with Pybricks MicroPython firmware (or EV3 runtime)
Describe the bug
It looks like for every
PybricksHub.write
command, the hub receives an extra0x06
character in the beginning, using most recent pybricksdev and beta firmware.Seems like the 0x06 is the
Command.WRITE_STDIN
const. I would have expected this to be filtered out on the hub side.Also,
PybricksHub.write_line
only adds\n
as a newline. I'm not sure about this, but I would have expected\r\n
since it's also the stdout format.write_line
also adds the extra0x06
at the startTo reproduce
Firmware:
Pybricks MicroPython v3.3.0b4 on 2023-04-21; Powered Up City Hub with STM32F030RC
pybricksdev
1.0.0a45
PC program:
hub program:
Output:
Expected behavior
I am expecting no extra 0x06 at the beginning of stdin for each write command.
The text was updated successfully, but these errors were encountered: