From b00083014abd4614a4cb638cdb0c9552bdeec353 Mon Sep 17 00:00:00 2001 From: midilab Date: Mon, 2 Jan 2023 10:11:48 -0500 Subject: [PATCH] mux setup for esp32 --- src/uClock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uClock.cpp b/src/uClock.cpp index 74d1cc8..3eddb64 100755 --- a/src/uClock.cpp +++ b/src/uClock.cpp @@ -50,7 +50,6 @@ // #if defined(ARDUINO_ARCH_ESP32) || defined(ESP32) hw_timer_t * _uclockTimer = NULL; - portMUX_TYPE _uclockTimerMux = portMUX_INITIALIZER_UNLOCKED; #define TIMER_ID 0 #endif @@ -58,6 +57,7 @@ // multicore archs // #if defined(ARDUINO_ARCH_ESP32) || defined(ESP32) + portMUX_TYPE _uclockTimerMux = portMUX_INITIALIZER_UNLOCKED; #define ATOMIC(X) portENTER_CRITICAL_ISR(&_uclockTimerMux); X; portEXIT_CRITICAL_ISR(&_uclockTimerMux); // // singlecore archs