Bravo @Gordon for your brilliant analysis (as always) and thank you very much for the tip about doing load() to resolve my problem!
The "Stardate Clock" app is my default watchface and it erroneously defines globally referenced constants within an 'if' block, resulting in undefined value errors later in the code:
if (g.getWidth() < 200) { // Bangle.js 2
const baseUnit1 = 3;
...
}
else {
const baseUnit1 = 5;
...
}
...
const outRad = baseUnit1 * 5; // baseUnit1 is not defined
I'd create a pull request for this but being a JavaScript newbie I'm not sure what the proper fix for this would be, sorry.
Thanks so much again for your help with this! Hopefully your debugging tip will also help others running into problems with subsequent firmware updates.
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.
Bravo @Gordon for your brilliant analysis (as always) and thank you very much for the tip about doing load() to resolve my problem!
The "Stardate Clock" app is my default watchface and it erroneously defines globally referenced constants within an 'if' block, resulting in undefined value errors later in the code:
I'd create a pull request for this but being a JavaScript newbie I'm not sure what the proper fix for this would be, sorry.
Thanks so much again for your help with this! Hopefully your debugging tip will also help others running into problems with subsequent firmware updates.