TheThingsNetwork/arduino-node-lib

isMoving always false within onMotionStart callback

rgm3 opened this issue · 0 comments

rgm3 commented

The Things Node CayenneLLP example always shows "Moving now: no" in the debug serial output because the callback function is executed before the motionStarted flag is set. This flag should be set before callback execution so that motion callbacks are run after the state is mutated.