Skip to content

Commit 7787bdd

Browse files
committed
Making the library work nicely with the nrf52
1 parent c978977 commit 7787bdd

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
@@ -64,10 +64,14 @@ class DHT {
6464
class InterruptLock {
6565
public:
6666
InterruptLock() {
67+
#if !defined(ARDUINO_ARCH_NRF52)
6768
noInterrupts();
69+
#endif
6870
}
6971
~InterruptLock() {
72+
#if !defined(ARDUINO_ARCH_NRF52)
7073
interrupts();
74+
#endif
7175
}
7276

7377
};

0 commit comments

Comments
 (0)