Skip to content

Commit 2cea6e7

Browse files
committed
Align with namespace change in ESP8266 Arduino implementation of InterruptLock.
1 parent eea12ca commit 2cea6e7

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
@@ -23,7 +23,6 @@
2323
#include <interrupts.h>
2424
#endif
2525

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

@@ -77,7 +76,9 @@ class DHT {
7776

7877
};
7978

80-
#if !defined(ESP8266)
79+
#if defined(ESP8266)
80+
using esp8266::InterruptLock;
81+
#else
8182
/*!
8283
* @brief Class that defines Interrupt Lock Avaiability
8384
*/

0 commit comments

Comments
 (0)