Skip to content

adapt #10899 to main#10989

Open
dhalbert wants to merge 1 commit intoadafruit:mainfrom
dhalbert:sleep-memory-PR10899-to-main
Open

adapt #10899 to main#10989
dhalbert wants to merge 1 commit intoadafruit:mainfrom
dhalbert:sleep-memory-PR10899-to-main

Conversation

@dhalbert
Copy link
Copy Markdown
Collaborator

@dhalbert dhalbert commented May 8, 2026

This adapts #10899, which was against 10.1.x, to main.

Since #10899, there was conditional compilation code added for Espressif chips without RTC memory. (I don't see that there actually are any such chips.) This PR merges #10899, and incorporates that new #if check.

FYI @lzrd

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.

One comment that should be removed.

Comment on lines +21 to +25
//| .. note::
//| Programs that call ``microcontroller.reset()`` should wait at least
//| one second after boot before resetting, otherwise CircuitPython's
//| double-reset safe mode detector may activate. See
//| ``supervisor/shared/safe_mode.c``.
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.

I don't think this is true because the safe mode wait happens before user code is run.

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.

2 participants