Skip to content

Commit 5c7b407

Browse files
committed
Disable sleep mode before doing OTA (#1005)
1 parent 81e3ebe commit 5c7b407

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cores/esp8266/Updater.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
extern "C" {
99
#include "c_types.h"
1010
#include "spi_flash.h"
11+
#include "user_interface.h"
1112
}
1213

1314
extern "C" uint32_t _SPIFFS_start;
@@ -59,6 +60,8 @@ bool UpdaterClass::begin(size_t size, int command) {
5960
_reset();
6061
_error = 0;
6162

63+
wifi_set_sleep_type(NONE_SLEEP_T);
64+
6265
uint32_t updateStartAddress = 0;
6366
if (command == U_FLASH) {
6467
//size of current sketch rounded to a sector

0 commit comments

Comments
 (0)