I started from scratch and removed the line:
phValue = phValue.substring(0, phValue.length - 1);
Everything seems to be working properly. I have no idea why, but starting from scratch seemed to do the trick.
@d0773d started
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 started from scratch and removed the line:
Everything seems to be working properly. I have no idea why, but starting from scratch seemed to do the trick.