derekenos / iome

A Physical Platform for Web Appplication Development
https://derekenos.com/project-iome
GNU General Public License v3.0
8 stars 1 forks source link

Reset config/system files when switch is depressed during power up #7

Open derekenos opened 4 years ago

derekenos commented 4 years ago

Currently it's possible to modify the config.json and other system-critical files (e.g. main.py) in such a way that the device becomes inaccessible, with USB as the only option to overwrite the affected files with a known good values.

Switch S1 on the ESP32-PICO-KIT is connected to IO0. You should check whether this switch is depressed during power up and, if so, overwrite config.json and other system-critical files with stock versions.