mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
Merge pull request #113 from gpambrozio/master
Making the library work nicely with the nrf52
This commit is contained in:
commit
be8859e28c
4
DHT.h
4
DHT.h
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user