Two thoughts:
if (char != ".") { value += char; } else { dpLoc = i; }
'data' always has a decimal point?
I2C1.writeTo(a, dpc); if(typeof dpLoc !== 'undefined') { I2C1.writeTo(a, dplo[dpLoc - 1]); }
@Manxome 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.
Two thoughts:
'data' always has a decimal point?