Just to say that if you have Node.js installed, running npm test in the BangleApps folder will do a quick sanity check of your code, which would pick up issues like this (it's the same as the 'travis' tests that are run on each PR in GitHub)
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.
Just to say that if you have Node.js installed, running
npm test
in the BangleApps folder will do a quick sanity check of your code, which would pick up issues like this (it's the same as the 'travis' tests that are run on each PR in GitHub)