File "menu.py", line 1 SyntaxError: invalid syntax
We were booting a badge with a (probably) invalid "clock.json". This caused the following.
The interesting part is that pressing the menu button caused more "syntax error" messages. Somehow this persisted. The good news: looks like it reproducible.
Trying to boot
[ 0] startup: Epicardium startup ...
[ 0] startup: Version v1.3-28-g76acf664
MAX7765x DIDM: 0x01 CID: 0x08
[ 0] ble: BLE is enabled.
[ 10] lifecycle: Loading "main.py" ...
--------------------------------
Pycardium
Version: v1.3-28-g76acf664
--------------------------------
Loading main.py ...
Traceback (most recent call last):
File "main.py", line 240, in <module>
File "main.py", line 76, in __init__
ValueError: syntax error in JSON
--------------------------------
Pycardium
Version: v1.3-28-g76acf664
--------------------------------
MicroPython v1.11-37-g62f004ba4 on 2019-08-22; card10 with max32666
Type "help()" for more information.
>>> [ 706] ble: Setting MAC address to CA:4D:10:84:1F:E5
[ 14106] lifecycle: Loading "menu.py" ...
--------------------------------
Pycardium
Version: v1.3-28-g76acf664
--------------------------------
Loading menu.py ...
Traceback (most recent call last):
File "menu.py", line 1
SyntaxError: invalid syntax
--------------------------------
Pycardium
Version: v1.3-28-g76acf664
--------------------------------
MicroPython v1.11-37-g62f004ba4 on 2019-08-22; card10 with max32666
Type "help()" for more information.
>>> [ 38123] pmic: Poweroff