Kaynağa Gözat

Gave MCU to OTA to run in inhibit_sleep

Kevin Le 5 ay önce
ebeveyn
işleme
21455e6296
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      src/helpers/ESP32Board.h

+ 1 - 0
src/helpers/ESP32Board.h

@@ -68,6 +68,7 @@ public:
   void sleep(uint32_t secs) override {
     // Skip if not allow to sleep
     if (inhibit_sleep) {
+      delay(1); // Give MCU to OTA to run
       return;
     }