From 320fa82656a9175e04f48bc59445f568d8fa29f2 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Sun, 17 Mar 2024 18:37:01 +0100 Subject: [PATCH] Fix #133 - annoying compilation warning --- OneWire.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OneWire.cpp b/OneWire.cpp index cb0d670..48eaff1 100644 --- a/OneWire.cpp +++ b/OneWire.cpp @@ -596,8 +596,8 @@ uint16_t OneWire::crc16(const uint8_t* input, uint16_t len, uint16_t crc) // undef defines for no particular reason #ifdef ARDUINO_ARCH_ESP32 -# undef noInterrupts() {portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED;portENTER_CRITICAL(&mux) -# undef interrupts() portEXIT_CRITICAL(&mux);} +#undef noInterrupts // () {portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED;portENTER_CRITICAL(&mux) +#undef interrupts // () portEXIT_CRITICAL(&mux);} #endif // for info on this, search "IRAM_ATTR" at https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/general-notes.html #undef CRIT_TIMING