Skip to content

pybricks/iodevices: Guard LWP3 device classes. - #491

Merged
dlech merged 1 commit into
pybricks:masterfrom
dlech:movehub-guard-lwp3-device-classes
Sep 5, 2026
Merged

pybricks/iodevices: Guard LWP3 device classes.#491
dlech merged 1 commit into
pybricks:masterfrom
dlech:movehub-guard-lwp3-device-classes

Conversation

@dlech

@dlech dlech commented Sep 5, 2026

Copy link
Copy Markdown
Member

Each class is only registered when its own option is enabled, so the code was already discarded, but its qstrs were added to the pool regardless. Saves around 190 bytes on Move Hub and around 130 on City Hub and Technic Hub.

Each class is only registered when its own option is enabled, so the code was
already discarded, but its qstrs were added to the pool regardless. Saves
around 190 bytes on Move Hub and around 130 on City Hub and Technic Hub.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@dlech
dlech merged commit 1df93fc into pybricks:master Sep 5, 2026
15 checks passed
@dlech
dlech deleted the movehub-guard-lwp3-device-classes branch September 5, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant