I just tracked this down, and it's: "&LastMove="+safeGetTime()-s.lastMotion.
This is like "Foo"+2-1 - the precedence of operators means that you're actually doing:
"Foo"+2-1
"Foo2"-1
NaN
What's happening is the - tries to convert Foo2 to a float, but the string buffer it reads it into is only sized for a floating point value - and "&LastMove=1442532952000.2280273" is bigger than it's expecting so it complains.
Still shouldn't come up with the warning though - I'll see what I can do about it.
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.
Perfect - thanks!
I just tracked this down, and it's:
"&LastMove="+safeGetTime()-s.lastMotion
.This is like
"Foo"+2-1
- the precedence of operators means that you're actually doing:What's happening is the
-
tries to convertFoo2
to a float, but the string buffer it reads it into is only sized for a floating point value - and"&LastMove=1442532952000.2280273"
is bigger than it's expecting so it complains.Still shouldn't come up with the warning though - I'll see what I can do about it.