From eea12ca6ea0947dcd6fad2fbfef63903d1c2ca67 Mon Sep 17 00:00:00 2001 From: "Dirk O. Kaar" Date: Mon, 24 Jun 2019 21:52:37 +0200 Subject: [PATCH] Duplicate definition of InterruptLock on ESP8266 - exists in cores/esp8266/interrupts.h there. --- DHT.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DHT.h b/DHT.h index 7e3fc34..3fcc1d6 100644 --- a/DHT.h +++ b/DHT.h @@ -19,6 +19,11 @@ #include "Arduino.h" + #if defined(ESP8266) + #include + #endif + + /* Uncomment to enable printing out nice debug messages. */ //#define DHT_DEBUG @@ -72,6 +77,7 @@ class DHT { }; +#if !defined(ESP8266) /*! * @brief Class that defines Interrupt Lock Avaiability */ @@ -88,5 +94,6 @@ class InterruptLock { #endif } }; +#endif #endif