Skip to content

handle CIRCUITPY_SAFE_MODE_DELAY in settings.toml - #11073

Merged
dhalbert merged 1 commit into
adafruit:mainfrom
dhalbert:CIRCUITPY_SAFE_MODE_DELAY
Jun 26, 2026
Merged

dhalbert merged 1 commit into
adafruit:mainfrom
dhalbert:CIRCUITPY_SAFE_MODE_DELAY

Conversation

@dhalbert

@dhalbert dhalbert commented Jun 26, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #8709, in a somewhat different way.

Add CIRCUITPY_SAFE_MODE_DELAY to settings.toml. If specified, it allows the user to change the length of the safe mode delay, during which a second press of the reset button goes into safe mode. The value is specifed as a float number of seconds. If the delay is 0, it effectively turns off the feature.

This required moving the safe-mode wait until after CIRCUITPY is mounted, so settings.toml can be read. I think this is OK, but if you think of a problem, let me know.

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@dhalbert
dhalbert merged commit 17196f7 into adafruit:main Jun 26, 2026
685 of 686 checks passed
@dhalbert
dhalbert deleted the CIRCUITPY_SAFE_MODE_DELAY branch June 26, 2026 19:04
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.

Option to disable safemode user trigger.

2 participants