Merge pull request #113 from gpambrozio/master

Making the library work nicely with the nrf52
This commit is contained in:
Paint Your Dragon
2019-01-11 16:34:03 -08:00
committed by GitHub

4
DHT.h
View File

@ -66,10 +66,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
} }
}; };