[Ovmsdev] Higher resolution events

Mark Webb-Johnson mark at webb-johnson.net
Sat Dec 2 20:53:01 HKT 2017

Pulled the outstanding request. All looks good now.

Regards, Mark.

> On 2 Dec 2017, at 5:46 PM, Tom Parker <tom at 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 at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev

More information about the OvmsDev mailing list