Skip to content

Commit eea12ca

Browse files
committed
Duplicate definition of InterruptLock on ESP8266 - exists in cores/esp8266/interrupts.h there.
1 parent c1a3b9e commit eea12ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

DHT.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919

2020
#include "Arduino.h"
2121

22+
#if defined(ESP8266)
23+
#include <interrupts.h>
24+
#endif
25+
26+
2227
/* Uncomment to enable printing out nice debug messages. */
2328
//#define DHT_DEBUG
2429

@@ -72,6 +77,7 @@ class DHT {
7277

7378
};
7479

80+
#if !defined(ESP8266)
7581
/*!
7682
* @brief Class that defines Interrupt Lock Avaiability
7783
*/
@@ -88,5 +94,6 @@ class InterruptLock {
8894
#endif
8995
}
9096
};
97+
#endif
9198

9299
#endif

0 commit comments

Comments
 (0)