You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I use parameter --slot in the run command like pb run --slot 1 script.py, I would suspect it will upload the program to slot 1 on the hub, regardless of which slot is selected on the hub. But if the slot selected on the hub doesn't match the slot of the --slot parameter you get an error message:
The hub has slot 2 selected, and a program can only be downloaded into the selected slot.
The hub chooses the slot, with the buttons on the hub itself. Select it there, or leave --slot out to accept the one it has.
Is this a bug or a feature? 😄
If it's meant to be this way, what is the use case for this parameter?
To reproduce
Select slot 2 on the hub.
On the command-line run pb run --slot 1 script.py
Expected behavior
Use the slot given with the --slot parameter, regardless of the slot selected on the hub.
No problem if it takes a while. I'm already very happy with this command-line tool.
While you're at it, also check the numbering of the slots. The first slot on the hub corresponds tot --slot 0. I don't think that's very convenient, most people would expect --slot 1 to correspond with the first slot selected on the hub. Especially on the EV3, where on the display the slots are numbered 1 to 4.
Activity
laurensvalk commentedon Nov 5, 2026
Thank you. Slots need to be revisited extensively on the firmware side to make this more generic. It may be a while before we get to that.
KWSmit commentedon Nov 5, 2026
No problem if it takes a while. I'm already very happy with this command-line tool.
While you're at it, also check the numbering of the slots. The first slot on the hub corresponds tot
--slot 0. I don't think that's very convenient, most people would expect--slot 1to correspond with the first slot selected on the hub. Especially on the EV3, where on the display the slots are numbered 1 to 4.