ARGH! I omitted a key part in the debug version, which is why it kept reporting undefined instead of a value. I've fixed it now, so resending to Espruino will give it the new version
But... I'm looking at the bit lengths it's returning... and it's really giving 8 zeros at the front of the humidity...
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.
ARGH! I omitted a key part in the debug version, which is why it kept reporting undefined instead of a value. I've fixed it now, so resending to Espruino will give it the new version
But... I'm looking at the bit lengths it's returning... and it's really giving 8 zeros at the front of the humidity...
plen=0.00002479553 bit:1
hout=undefined
plen=0.00002479553 bit:2
hout=undefined
plen=0.00002479553 bit:3
hout=undefined
plen=0.00002479553 bit:4
hout=undefined
plen=0.00002479553 bit:5
hout=undefined
plen=0.00002479553 bit:6
hout=undefined
plen=0.00002479553 bit:7
hout=undefined
plen=0.00002384185 bit:8