Parcourir la source

Gave MCU to OTA to run in inhibit_sleep

Kevin Le il y a 5 mois
Parent
commit
21455e6296
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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;
     }