Description
In testing out the new FreeRTOS queue support from @hwmland's PR #45, I found that even after successfully configuring the queue registry and adding queues to the registry, I still got a hint reading
Missing Queue/Mutex/Semaphore info..:
Register queues/semaphores/mutexes of interest using vQueueAddToRegistry()
This looks to me like it's because RTOSFreeRTOS.createHmlHelp()
is idempotent: it only changes this.helpHtml
the first time it's called, which is in the first call to getThreadInfo()
from refresh()
. That happens before getQueueInfo()
is ever called, so this.queueInfo
hasn't been populated and will always be []
.
This isn't completely trivial to fix, because createHtmlHelp()
uses an RTOSStrToValueMap
that's local to getThreadInfo()
. I think it is fixable, but it'll require a more extensive reworking of how the help text is created and when it is updated.