Hi Gordon, it seems using the code in your example crashed the espruino. I did find a workaround which will suffice for now but using the bind() function would be much neater. I have branched the bug off on my git, maybe it can help you identify a problem. I'm using the 1.60 firmware.
My Git is here: https://github.com/AlexDM0/espruinoEVE
The branch espruinoBug shows the problem. If you upload the entire code it hangs clearly. The bind command is on line 161.
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.
Hi Gordon, it seems using the code in your example crashed the espruino. I did find a workaround which will suffice for now but using the bind() function would be much neater. I have branched the bug off on my git, maybe it can help you identify a problem. I'm using the 1.60 firmware.
My Git is here: https://github.com/AlexDM0/espruinoEVE
The branch espruinoBug shows the problem. If you upload the entire code it hangs clearly. The bind command is on line 161.