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
commit be8859e28c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
DHT.h
View File

@ -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
}
};