It happened again and now i am relatively certain it is not only my code, unless i understood something fundamentally wrong.
I changed my handler to
function handlePressure(p) {
if (p===undefined) {
return;
}
[do handling here]
}
and it still happened.
My best guess is, that it is a problem that my clock-face and the recorder access the pressure at the same time, but i currently do not know how to verify or circumvent this except never displaying the pressure or temperature while the recorder records it.
Furthermore keeping the clock powered off for a while does not help, is there any other way to reset the sensors except draining the battery (which i am afraid will damage the battery)?
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.
It happened again and now i am relatively certain it is not only my code, unless i understood something fundamentally wrong.
I changed my handler to
and it still happened.
My best guess is, that it is a problem that my clock-face and the recorder access the pressure at the same time, but i currently do not know how to verify or circumvent this except never displaying the pressure or temperature while the recorder records it.
Furthermore keeping the clock powered off for a while does not help, is there any other way to reset the sensors except draining the battery (which i am afraid will damage the battery)?