So I just looked, and at the moment it's using parseInt(d.substr(19,15),2)*0.2*(0.5-d[16]) - where d is the raw value.
parseInt(d.substr(19,15),2)*0.2*(0.5-d[16])
d
Maybe you could try the following with the raw data you're getting and see if it works correctly? parseInt(d.substr(19,15),2)*0.2*(0.5-d[18])
parseInt(d.substr(19,15),2)*0.2*(0.5-d[18])
@Gordon 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.
So I just looked, and at the moment it's using
parseInt(d.substr(19,15),2)*0.2*(0.5-d[16])
- whered
is the raw value.Maybe you could try the following with the raw data you're getting and see if it works correctly?
parseInt(d.substr(19,15),2)*0.2*(0.5-d[18])