monome / crow

Crow speaks and listens and remembers bits of text. A scriptable USB-CV-II machine
GNU General Public License v3.0
162 stars 34 forks source link

Clear script by self-patching on boot #469

Closed trentgill closed 1 year ago

trentgill commented 1 year ago

Connect OutN -> InN (maybe both ins?) and reboot the system to clear a script.

This is useful in case the uploaded userscript is causing the system not to boot.

Probably not a big issue these days as the frozen userscript is much less of an issue with recent changes. Still it happens occasionally(? i think ?) so could be a very simple & worthwhile thing to add.

trentgill commented 1 year ago

closing this as it really isn't a problem anymore. the cause of userscripts seemingly bricking crow was because of an error in the ll/flash.c read/write routines that was patched over a year ago. @dndrks let me know if people on current firmwares are still having the issue where they have to run the "erase_userscript" shell script. i think the answer is no, and we don't need to add this additional check (which itself could cause confusion if someone starts up their system self-patched for some reason).