-
-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Sorry for the long post, but I want to be complete. . .
Describe the bug
cityhub at `ci-build-3813-v3.6.1-152-g191b715d' after power-off (with the hub button) the hub restarts
Have NOT noticed this on movehub, Technichub, primehub nor Robot Inventor hub at the same firmware.
Tested a number of firmwares for the cityhub.
Not all of them from the master branch.
The oldest I tried was cityhub-firmware-build-3776-git91d7221e
Same result.
To be sure it is no hardware thing I flashed the current beta.
No problem at that firmware - ci-release-86-v3.6.1 on 2025-03-11
To reproduce 1
Steps to reproduce the behavior:
- Put the hub on
- connect to a pc
- disconnect (using the pc button)
- press and keep the hub button until the hub flashes fast and goes off
- See the error: after less than a second hub restarts
To reproduce 2
Steps to reproduce the behavior:
- Put the hub on
- connect to a pc
- run this:
from pybricks.hubs import ThisHub
hub = ThisHub()
hub.system.shutdown()- hub goes off
- hub restarts.
Scenario difference between hash 0663e76d and hash da108b30
This scenario does not restart on github hash 0663e76d.
But does restart at github hash da108b30:
- pull the batteries from the hub and reinsert
- press the hub button
- hub starts
- press and keep the hub button until the hub flashes and goes off
And no restart on github hash 0663e76d
But a restart on github hash da108b30
Another no restart scenario:
- connect to the hub
- enter the REPL
- issue the command
hub.system.shutdown() - hub goes off and stays off
Expected behavior
Hub should stay off
Screenshots
There is a saying that a picture is worth a 1000 words. Screenshots really help to identify and solve problems.