I only submitted a portion of the code. It does contain the reset. It's totally repeatable.
But due to this "discovery" I think I (finally) understand what is happening. As you/DrAzzy/I mentioned, I have to nest the calls within one another if I call commands sequentially.
As a non-JS programmer I am not used to the asynchronous execution of code. The problem probably lies in there.
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.
I only submitted a portion of the code. It does contain the reset. It's totally repeatable.
But due to this "discovery" I think I (finally) understand what is happening. As you/DrAzzy/I mentioned, I have to nest the calls within one another if I call commands sequentially.
As a non-JS programmer I am not used to the asynchronous execution of code. The problem probably lies in there.