Skip to content

Commit

Permalink
Fix PaulStoffregen#133 - annoying compilation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Speederc authored Apr 9, 2024
1 parent 72249e2 commit db28651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OneWire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit db28651

Please sign in to comment.