[Ovmsdev] Higher resolution events

Tom Parker tom at carrott.org
Sat Dec 2 17:46:30 HKT 2017

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.

More information about the OvmsDev mailing list