From 7787bdd18674a25692c35d2e6fffd944d90f3d9a Mon Sep 17 00:00:00 2001 From: Gustavo Ambrozio Date: Tue, 14 Aug 2018 13:44:40 -0600 Subject: [PATCH] Making the library work nicely with the nrf52 --- DHT.h | 4 ++++ 1 file changed, 4 insertions(+) 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 } };