support icon indicating copy to clipboard operation
support copied to clipboard

[Bug] PrimeHub program runs without error on a EV3Brick hub

Open BertLindeman opened this issue 1 month ago • 2 comments

Describe the bug A program with from pybricks.hubs import PrimeHub runs on an EV3 hub without any error reported.

To reproduce Steps to reproduce the behavior: Run a test program like below on an EV3:

from pybricks.hubs import PrimeHub
from pybricks import version
hub = PrimeHub()
print(version)

beep_freq = 440
beep_duration = 5

for _ in range(10):
    Volume = hub.speaker.volume()
    Volume -= 10
    if Volume < 0:
        Volume = 0
    print('Volume Down:', Volume, '%')
    hub.speaker.volume(Volume)
    hub.speaker.beep(beep_freq, beep_duration)

Tested on: ('ev3', '4.0.0b2', 'ci-build-4452-v4.0.0b2-11-g5d0eed1e on 2025-11-27')

Expected behavior Would have expected an error like cannot import PrimeHub

Screenshots There is a saying that a picture is worth a 1000 words. Screenshots really help to identify and solve problems.

Current output running the test program

('ev3', '4.0.0b2', 'ci-build-4452-v4.0.0b2-11-g5d0eed1e on 2025-11-27')
Volume Down: 65 %
Volume Down: 55 %
Volume Down: 45 %
Volume Down: 35 %
Volume Down: 25 %
Volume Down: 15 %
Volume Down: 5 %
Volume Down: 0 %
Volume Down: 0 %
Volume Down: 0 %

BertLindeman avatar Dec 04 '25 10:12 BertLindeman