forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Milestone
Description
CircuitPython version
CircuitPython 7.1.1
Code/REPL
https://forums.adafruit.com/viewtopic.php?f=60&t=187420#p907592
Behavior
If the code is run as shown, everything runs as expected - the program runs continually and the LED flashes indefinitely.
If the time.sleep(15) line is uncommented, the program runs for 16 seconds then the board is reset and the program re-starts.
Again, this is as expected.
However, if the print(b) line is uncommented instead, the program terminates at the print(b) line with the error message
NameError: name 'b' is not defined. The board then displays the >>> prompt in the repl and is never reset.
Description
No response
Additional information
Testing with the print line uncommented on a Feather M4 Express, the board displays the same error message and prompt, but at the 16 second mark, the
board is reset and the program is again executed.
tannewt and rdagger