Skip to content

Commit 862599b

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DHT.h

Lines changed: 7 additions & 1 deletion
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,7 +77,7 @@ class DHT {
7277

7378
};
7479

75-
/*!
80+
#if !defined(ESP8266)
7681
* @brief Class that defines Interrupt Lock Avaiability
7782
*/
7883
class InterruptLock {
@@ -88,5 +93,6 @@ class InterruptLock {
8893
#endif
8994
}
9095
};
96+
#endif
9197

9298
#endif

0 commit comments

Comments
 (0)