Skip to content

esp32: make machine.soft_reset() work in main.py #6782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

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