forked from adafruit/DHT-sensor-library
Move ESP8266 yield() out of InterruptLock
This commit is contained in:
1 parent
9bf12551d8
commit
f566d58f47
3 files changed
+5
-7
No files matched your search
@@ -67,9 +67,6 @@ class DHT {
|
||||
class InterruptLock {
|
||||
public:
|
||||
InterruptLock() {
|
||||
#if defined(ESP8266)
|
||||
yield();
|
||||
#endif
|
||||
#if !defined(ARDUINO_ARCH_NRF52)
|
||||
noInterrupts();
|
||||
#endif
|
||||
@@ -77,9 +74,6 @@ class InterruptLock {
|
||||
~InterruptLock() {
|
||||
#if !defined(ARDUINO_ARCH_NRF52)
|
||||
interrupts();
|
||||
#endif
|
||||
#if defined(ESP8266)
|
||||
yield();
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user