Skip to content

simplify startup message printing#11010

Merged
tannewt merged 1 commit into
adafruit:mainfrom
dhalbert:startup-message-printing
May 18, 2026
Merged

simplify startup message printing#11010
tannewt merged 1 commit into
adafruit:mainfrom
dhalbert:startup-message-printing

Conversation

@dhalbert
Copy link
Copy Markdown
Collaborator

Print startup messages later so they can be suppressed if desired. Also simplifies the logic of printing them.

I tested on two Metro M0's: the messages still seem to be printed in the same order, and if I go into user-initiated safe mode, they are still the same. I also wrote a blink program on both and tested with USB power only but no data, and they still work. Also boot.py content is still the same.'

I am not sure why the original code was more complicated and what case the code after #if CIRCUITPY_AUTORELOAD_DELAY_MS > 0 was trying to handle that the current code may not, but it seems OK with the changes.

@mikeysklar could you review test on Macropad or similar to see if this allows what the original issue desired?

@dhalbert dhalbert requested review from mikeysklar and tannewt May 18, 2026 14:05
Copy link
Copy Markdown
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me. Thanks!

@tannewt tannewt merged commit bc27743 into adafruit:main May 18, 2026
668 checks passed
@dhalbert dhalbert deleted the startup-message-printing branch May 18, 2026 23:45
@mikeysklar
Copy link
Copy Markdown
Collaborator

Tested on Macropad RP2040 with a recent alpha artifact. Boot.py suppression works — custom display content shows up without boot.py output appearing on screen. The firmware header lines (version, board ID, UID, "boot.py output:") still flash briefly before code.py takes over, but that's printed before boot.py runs so probably out of scope here.

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.

Silence Initial Auto-reload boot message

3 participants