Skip to content

Errors with max and min functions when compiling for ESP32 with Arduino IDE #1

Description

@s-marley

When compiling for ESP32, errors are thrown in LEDSprites.cpp when mixing types in the min() and max() functions. I don't have the exact error to hand but if I remember correctly in each case one parameter is an int, the other a uint8_t.

This used to work, but I believe something changed in the way the ESP32 code is compiled under the Arduino environment. If anyone else has this problem, a quick fix is to replace min() and max() with _min() and _max() everywhere they appear in LEDSprites.cpp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions