Skip to content

Commit

Permalink
Merge pull request #113 from gpambrozio/master
Browse files Browse the repository at this point in the history
Making the library work nicely with the nrf52
  • Loading branch information
PaintYourDragon committed Jan 12, 2019
2 parents bf86a40 + 7787bdd commit be8859e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DHT.h
Expand Up @@ -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
}

};
Expand Down

0 comments on commit be8859e

Please sign in to comment.