Skip to content

Conversation

tve
Copy link
Contributor

@tve tve commented Jan 18, 2021

This patch fixes two issues on the esp32: it enables machine.soft_reset() to be called in main.py and it enables machine.reset_cause() to correctly identify a soft reset. The former is useful in that it enables soft resets in applications that are started at boot time.
The support is patterned after the stm32 port.
No docs changes 'cause this makes things works as documented.
No unit test, I can create one but due to the reset it ends up being pretty messy.

@dpgeorge
Copy link
Member

Thanks, a good addition. Don't worry about a test.

@dpgeorge
Copy link
Member

Rebased, tested against new cmake build, and merged in d28dbcd

@dpgeorge dpgeorge closed this Feb 19, 2021
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants