Skip to content

Remove yield macro #193

Closed
Closed
@256dpi

Description

@256dpi

The yield macro is very ambiguous and therefore conflicts with other libraries that use yield as a symbol.

Now, if other included code uses the identifier yield it gets replaced by the macro. We currently have this issue with the 256dpi/arduino-mqtt#56 library.

The best approach would be to declare a function that simply forwards the call:

// Before
#define yield() vPortYield()

// After
void yield() {
  vPortYield()
}

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