Skip to content

Commit 6024f3d

Browse files
committed
Align with namespace change in ESP8266 Arduino implementation of InterruptLock.
1 parent 6bb27f6 commit 6024f3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DHT.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <interrupts.h>
2525
#endif
2626

27-
2827
/* Uncomment to enable printing out nice debug messages. */
2928
//#define DHT_DEBUG
3029

@@ -94,7 +93,9 @@ class DHT {
9493
uint32_t expectPulse(bool level);
9594
};
9695

97-
#if !defined(ESP8266)
96+
#if defined(ESP8266)
97+
using esp8266::InterruptLock;
98+
#else
9899
/*!
99100
* @brief Class that defines Interrupt Lock Avaiability
100101
*/

0 commit comments

Comments
 (0)