TheThingsNetwork / arduino-node-lib

Arduino Library for The Things Node
MIT License
22 stars 26 forks source link

isMoving always false within onMotionStart callback #25

Closed rgm3 closed 4 years ago

rgm3 commented 4 years ago

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.