All you have to do to avoid the setup issue is to specifically put a call to onInit() at the end of your code...
If you're having the issues with the buffer overflowing then that could have been causing the leak (especially under 1v65). For now, try adding the line pinMode(A10,'input_pullup'). That will try and make sure that the Serial line doesn't get data that it shouldn't have.
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.
All you have to do to avoid the setup issue is to specifically put a call to
onInit()
at the end of your code...If you're having the issues with the buffer overflowing then that could have been causing the leak (especially under 1v65). For now, try adding the line
pinMode(A10,'input_pullup')
. That will try and make sure that the Serial line doesn't get data that it shouldn't have.