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