Skip to content

fourwire_construct no reset pin must be mp_const_none, not NULL#10995

Open
dhalbert wants to merge 1 commit intoadafruit:10.2.xfrom
dhalbert:fourwire-no-reset-pin
Open

fourwire_construct no reset pin must be mp_const_none, not NULL#10995
dhalbert wants to merge 1 commit intoadafruit:10.2.xfrom
dhalbert:fourwire-no-reset-pin

Conversation

@dhalbert
Copy link
Copy Markdown
Collaborator

@dhalbert dhalbert commented May 10, 2026

common_hal_fourwire_fourwire_construct() was changed in #10783 to take objects in general rather than only pin objects. If the display reset pin was not present, it expected mp_const_none, not the previous NULL or MP_OBJ_NULL (both are zero). This caused a crash on all boards that did not use a reset pin for the display.

Thanks @oenone for tracking down the exact commit, which made the diagnosis easy.

@dhalbert
Copy link
Copy Markdown
Collaborator Author

@oenone tested (#10993 (comment)) and this fix works for them.

@dhalbert
Copy link
Copy Markdown
Collaborator Author

This will be in 10.2.1, and I will do a release very soon, since this bug affects quite a few boards.

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