Skip to content

FreeRTOS: hints always report missing queue info, even when info is found and displayed #61

Open
@malsyned

Description

@malsyned

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()

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions