Skip to content

Commit be8859e

Browse files
Merge pull request #113 from gpambrozio/master
Making the library work nicely with the nrf52
2 parents bf86a40 + 7787bdd commit be8859e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DHT.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,14 @@ class DHT {
6666
class InterruptLock {
6767
public:
6868
InterruptLock() {
69+
#if !defined(ARDUINO_ARCH_NRF52)
6970
noInterrupts();
71+
#endif
7072
}
7173
~InterruptLock() {
74+
#if !defined(ARDUINO_ARCH_NRF52)
7275
interrupts();
76+
#endif
7377
}
7478

7579
};

0 commit comments

Comments
 (0)