Skip to content

pbio/platform: Make ioport pins const. - #490

Merged
dlech merged 1 commit into
pybricks:masterfrom
dlech:platform-const-ioport-pins
Sep 5, 2026
Merged

pbio/platform: Make ioport pins const.#490
dlech merged 1 commit into
pybricks:masterfrom
dlech:platform-const-ioport-pins

Conversation

@dlech

@dlech dlech commented Sep 5, 2026

Copy link
Copy Markdown
Member

These compound literals were not const, so they ended up in RAM instead of flash even though nothing ever writes them. Frees around 100 to 300 bytes of RAM, depending on how many ports the hub has.

These compound literals were not const, so they ended up in RAM instead of
flash even though nothing ever writes them. Frees around 100 to 300 bytes of
RAM, depending on how many ports the hub has.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@dlech
dlech merged commit aaa10b1 into pybricks:master Sep 5, 2026
15 checks passed
@dlech
dlech deleted the platform-const-ioport-pins branch September 5, 2026 21:18
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