浏览代码

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;
     }