Skip to content

[Bug] Connecting to Pybricks Code after connecting Xbox Controller sends pairing request to PC #2522

@laurensvalk

Description

@laurensvalk

Describe the bug
In certain cases, the Technic Hub will send a pairing request to the host when it shouldn't.

Image

To reproduce

  • Connect to the Xbox Controller. The hub disconnects from Pybricks Code.
  • Stop the program, which disconnects the controller.
  • Connect the hub to Pybricks Code.

On the PC, you will now get a pairing request.

This is known behavior, but it would not happen in practice since we used to always reset Bluetooth after running a program while disconnected.

However, we no longer do that. So we should unset this setting manually at runtime.

Expected behavior
Not get a pairing request on the PC. It is only intended for the Xbox Controller.

Metadata

Metadata

Assignees

Labels

hub: technichubIssues related to the LEGO Technic hub (Hub No. 2)software: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions