We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
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
supervisor.RunReason.SUPERVISOR_RELOAD
Also get AUTO_RELOAD by typing CTRL-D in the REPL (expected REPL_RELOAD)
AUTO_RELOAD
REPL_RELOAD
Pressing the reset button on the Feather S2 gives
microcontroller.ResetReason.POWER_ON supervisor.RunReason.AUTO_RELOAD
expected STARTUP
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
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
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
repeatedly gives
but expected
supervisor.RunReason.SUPERVISOR_RELOAD
Also get
AUTO_RELOAD
by typing CTRL-D in the REPL (expectedREPL_RELOAD
)Pressing the reset button on the Feather S2 gives
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
but now:
6.1.0-beta.2-124-gfd21ff59d on 2020-12-18
adafruit-circuitpython-bundle-6.x-mpy-20201220
The text was updated successfully, but these errors were encountered: