Pulled the outstanding request. All looks good now. Regards, Mark.
On 2 Dec 2017, at 5:46 PM, Tom Parker <tom@carrott.org> wrote:
On 27/11/17 00:42, Mark Webb-Johnson wrote:
You definitely don’t want to be spinning - that won’t give you any precision on the delay (other tasks may pre-empt), and is also wasteful.
How about a timer (xTimerCreate). Have it fire once every 50ms/100ms. You can xTimerStart start it, and stop when done.
This worked! I create the timer once, start it whenever I receive the command, and stop it from within the timer call when I'm done.
I've got a bit more testing to do before I push, and I'd like to get the other leaf pull request out of the way first the remote command changes build on that change. _______________________________________________ OvmsDev mailing list OvmsDev@lists.teslaclub.hk http://lists.teslaclub.hk/mailman/listinfo/ovmsdev