Skip to content

period of event1 is reset by cancel #1190

Closed
@noritan

Description

@noritan

Docs issue template

The example program does not work as expected.

Page link

https://os.mbed.com/docs/mbed-os/v5.15/apis/eventqueue.html#static-eventqueue-example-posting-user-allocated-events-to-the-static-queue

Expected to find...

It is described in the example code that two set of events are dispatched. But the event1 is dispatched only once.

Found

The period parameter of event1 is set to 200 in the main() function. But the parameter is reset when the event1 is cancelled by queue.cancel(&event1); An additional event1.period(200); must be called after the cancel.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions