Making the library work nicely with the nrf52

This commit is contained in:
Gustavo Ambrozio 2018-08-14 13:44:40 -06:00
parent c978977718
commit 7787bdd186

4
DHT.h
View File

@ -64,10 +64,14 @@ class DHT {
class InterruptLock { class InterruptLock {
public: public:
InterruptLock() { InterruptLock() {
#if !defined(ARDUINO_ARCH_NRF52)
noInterrupts(); noInterrupts();
#endif
} }
~InterruptLock() { ~InterruptLock() {
#if !defined(ARDUINO_ARCH_NRF52)
interrupts(); interrupts();
#endif
} }
}; };