I am using the http://chilipeppr.com/esp32 workspace. Uploading the code in the 'intended' attached image, then clicking 'Capture the contents of the file and open it in the LUA editor' produces the 'result'. It seems the upload shuffles the lines in the file.
It seems the reshuffle is particularly sensitive to "node.restart()", other code seems to go in fine. The only occurence of node.restart() in the workspace code seems to be as an event handler for the reset button, I can't spot any other magic related to it.
After spending quite a few hours trying to figure out why the device resets continuosly, this is amusing :))
Intended:

Result:

I am using the http://chilipeppr.com/esp32 workspace. Uploading the code in the 'intended' attached image, then clicking 'Capture the contents of the file and open it in the LUA editor' produces the 'result'. It seems the upload shuffles the lines in the file.
It seems the reshuffle is particularly sensitive to "node.restart()", other code seems to go in fine. The only occurence of node.restart() in the workspace code seems to be as an event handler for the reset button, I can't spot any other magic related to it.
After spending quite a few hours trying to figure out why the device resets continuosly, this is amusing :))
Intended:
Result: