ソースを参照

Gave MCU to OTA to run in inhibit_sleep

Kevin Le 5 ヶ月 前
コミット
21455e6296
1 ファイル変更1 行追加0 行削除
  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;
     }