Skip to content

[Bug] Ignore stdin when no program is running #303

@laurensvalk

Description

@laurensvalk

At the moment, programs downloads and user input/output happen on the same Bluetooth characteristic.

So when no program is running and you type something (anything) in the terminal, the hub interprets it as a program, which usually gives:

ValueError: incompatible .mpy file

As a workaround, perhaps Pybricks Code could ignore user input when no program is running.

Example: stopped a program and then press UP or DOWN button, shows:

SystemExit: stop button pressed
ValueError: incompatible .mpy file
ValueError: incompatible .mpy file
ValueError: incompatible .mpy file
ValueError: incompatible .mpy file
ValueError: incompatible .mpy file

No idea why I would want to press UP or DOWN though 😃
And do not know what the cursor keys are supposed to do.
Most browsing keys act the same.

Originally posted by @BertLindeman in #297 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    software: pybricks-codeIssues with https://code.pybricks.com application

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions