Skip to content

Commit 9023b16

Browse files
committed
Duplicate definition of InterruptLock on ESP8266 - exists in cores/esp8266/interrupts.h there.
1 parent 61ffee5 commit 9023b16

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
@@ -20,6 +20,11 @@
2020

2121
#include "Arduino.h"
2222

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

@@ -89,6 +94,7 @@ class DHT {
8994
uint32_t expectPulse(bool level);
9095
};
9196

97+
#if !defined(ESP8266)
9298
/*!
9399
* @brief Class that defines Interrupt Lock Avaiability
94100
*/
@@ -105,5 +111,6 @@ class InterruptLock {
105111
#endif
106112
}
107113
};
114+
#endif
108115

109116
#endif

0 commit comments

Comments
 (0)