Skip to content

[Bug] Button press on program start #2774

Description

@kai-morich

Describe the bug
On Spike Prime we kept left/right/bluetooth button pressed while starting the program with the center button.
In the program we performed special actions, if buttons were pressed at startup with:

if Button.LEFT in hub.buttons.pressed():
    ....

With Pybricks 4.x the program does not start if any other button is pressed.
As mitigation we are using different slots.

Expected behavior
Could work again, if you would toggle the slots on button release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssues that have not been triaged yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions