Skip to content

supervisor.RunReason is unexpectedly AUTO_RELOAD on newer beta-2 builds #3858

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
anecdata opened this issue Dec 21, 2020 · 0 comments · Fixed by #4708
Closed

supervisor.RunReason is unexpectedly AUTO_RELOAD on newer beta-2 builds #3858

anecdata opened this issue Dec 21, 2020 · 0 comments · Fixed by #4708
Labels
bug espressif applies to multiple Espressif chips power
Milestone

Comments

@anecdata
Copy link
Member

anecdata commented Dec 21, 2020

I may be doing something wrong or misinterpreting, but supervisor.RunReason isn't acting as I expect.

FeatherS2 with ESP32S2:

6.1.0-beta.2-124-gfd21ff59d on 2020-12-18

import time
import supervisor

time.sleep(5)
print(supervisor.runtime.run_reason)
supervisor.reload()

repeatedly gives

soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
supervisor.RunReason.AUTO_RELOAD

but expected supervisor.RunReason.SUPERVISOR_RELOAD

Also get AUTO_RELOAD by typing CTRL-D in the REPL (expected REPL_RELOAD)

Pressing the reset button on the Feather S2 gives

microcontroller.ResetReason.POWER_ON
supervisor.RunReason.AUTO_RELOAD

expected STARTUP

PyPortal:

seemed to work on older beta code:
6.1.0-beta.2 on 2020-12-03
adafruit-circuitpython-bundle-6.x-mpy-20201203

alarm.ResetReason.UNKNOWN
supervisor.RunReason.STARTUP

but now:
6.1.0-beta.2-124-gfd21ff59d on 2020-12-18
adafruit-circuitpython-bundle-6.x-mpy-20201220

microcontroller.ResetReason.UNKNOWN
supervisor.RunReason.AUTO_RELOAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug espressif applies to multiple Espressif chips power
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants