Move ESP8266 yield() out of InterruptLock

This commit is contained in:
Phillip Burgess committed 2019-02-18 10:20:28 -08:00
1 parent 9bf12551d8
commit f566d58f47
3 files changed
+5 -7

No files matched your search

-6
View File
@@ -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
}
};