'portMux_INITIALIZER_UNLOCKED' was not declared in this scope

I'm programming the ESP32 interrupts on Arduino IDE.
Do I get this error because this:

portMUX_TYPE mux = portMux_INITIALIZER_UNLOCKED;

initialization does not exist in the Arduino IDE?
Or do I need some header to include?

You can get this error if you do not have an esp32 board selected. Please post a complete sketch that demonstrates this problem.

Try this:

portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED

Look closely. Capitalization counts.

Oh dear! Thanks any way for the extra eyes.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.