So: is this intentionally and I do not get it? or is this a glitch?
Its easy to “repair” by adding the “const” into the timer.h but anyway I want to ask…
The vTimerSetTimerID() function is new. Intended to allow ‘timer local storage’ so that a value can be passed between subsequent calls to the timer’s callback function. It isn’t actually documented yet.
I think the ‘set’ function should not have a const. It compiles with the const because the const is effectively cast away - but that is not good practice. So that has been removed.
The ‘get’ function should have a const in both places.
These changes have been made in the head revision - but not yet checked in.