Skip to content

Commit

Permalink
Duplicate definition of InterruptLock on ESP8266 - exists in cores/es…
Browse files Browse the repository at this point in the history
…p8266/interrupts.h there.
  • Loading branch information
dok-net committed Jul 9, 2019
1 parent c1a3b9e commit eea12ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions DHT.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@

#include "Arduino.h"

#if defined(ESP8266)
#include <interrupts.h>
#endif


/* Uncomment to enable printing out nice debug messages. */
//#define DHT_DEBUG

Expand Down Expand Up @@ -72,6 +77,7 @@ class DHT {

};

#if !defined(ESP8266)
/*!
* @brief Class that defines Interrupt Lock Avaiability
*/
Expand All @@ -88,5 +94,6 @@ class InterruptLock {
#endif
}
};
#endif

#endif

0 comments on commit eea12ca

Please sign in to comment.