On the Bangle.js 2 I'd say just upload to RAM for developing since there's more than enough - that way a simple long-press of the button and it's gone.
I think you probably saved to 'Flash' with the IDE. I've been meaning to put some kind of warning in there but it's a little tricky as on non-Bangle.js Espruino devices Flash is probably the thing you want to use.
Fixing it is as easy as removing and re-uploading the bootloader app though.
Is there a heuristic command you can try running before upload to detect that it is a Bangle and display a warning only if so? It might not cover the Bangle in all its possible states, but I think the one where people are most likely to be hitting the "to flash" button by mistake.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
On the Bangle.js 2 I'd say just upload to RAM for developing since there's more than enough - that way a simple long-press of the button and it's gone.
I think you probably saved to 'Flash' with the IDE. I've been meaning to put some kind of warning in there but it's a little tricky as on non-Bangle.js Espruino devices Flash is probably the thing you want to use.
Fixing it is as easy as removing and re-uploading the
bootloader
app though.