So when I wrap stuff in functions, it crashes, when the code is not inside a function call, it works. This must be a bug...?
Nevermind, so when I save this as a file on the watch its self. It doesn't have an issue running it. Why is this? I always get confused with the prompt (save to ram) and its execution differences to file-based running.
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.
So when I wrap stuff in functions, it crashes, when the code is not inside a function call, it works. This must be a bug...?
Nevermind, so when I save this as a file on the watch its self. It doesn't have an issue running it. Why is this? I always get confused with the
prompt (save to ram)
and its execution differences to file-based running.