diff --git a/DHT.h b/DHT.h index 7ab65a7..dd09d7f 100644 --- a/DHT.h +++ b/DHT.h @@ -66,10 +66,14 @@ class DHT { class InterruptLock { public: InterruptLock() { +#if !defined(ARDUINO_ARCH_NRF52) noInterrupts(); +#endif } ~InterruptLock() { +#if !defined(ARDUINO_ARCH_NRF52) interrupts(); +#endif } };