Hi rigrig, I did use fake messages to test and those do work. Sometimes it will actually reset the position to zero with the way the code is now, other times it won't. It's not consistent so it's very difficult for me to pinpoint where the problem is coming from. I'm going to do some more digging in the gadgetbridge log and see if I can decipher how the messages are being sent and when. Thanks for your suggestion.
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.
Hi rigrig, I did use fake messages to test and those do work. Sometimes it will actually reset the position to zero with the way the code is now, other times it won't. It's not consistent so it's very difficult for me to pinpoint where the problem is coming from. I'm going to do some more digging in the gadgetbridge log and see if I can decipher how the messages are being sent and when. Thanks for your suggestion.