Skip to content

Check if microcontroller.reset() in quick succession will enter double-reset safe mode #11005

@dhalbert

Description

@dhalbert

#10899 originally added this doc note in shared-bindings/alarm/SleepMemory.c:

//|     .. 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``.

@tannewt wasn't sure this was true. I removed it in #10989. Revisit this later. If it is true, maybe it's a bug.
Tagging @lzrd, who added the comment, for interest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions