Making the library work nicely with the nrf52

This commit is contained in:
Gustavo Ambrozio committed 2018-08-14 13:44:40 -06:00
1 parent c978977718
commit 7787bdd186
1 file changed
+4
+4
View File
@@ -64,10 +64,14 @@ class DHT {
class InterruptLock {
public:
InterruptLock() {
#if !defined(ARDUINO_ARCH_NRF52)
noInterrupts();
#endif
}
~InterruptLock() {
#if !defined(ARDUINO_ARCH_NRF52)
interrupts();
#endif
}
};