mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
Disable sleep mode before doing OTA (#1005)
This commit is contained in:
parent
81e3ebef7a
commit
5c7b40740a
@ -8,6 +8,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#include "c_types.h"
|
#include "c_types.h"
|
||||||
#include "spi_flash.h"
|
#include "spi_flash.h"
|
||||||
|
#include "user_interface.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" uint32_t _SPIFFS_start;
|
extern "C" uint32_t _SPIFFS_start;
|
||||||
@ -59,6 +60,8 @@ bool UpdaterClass::begin(size_t size, int command) {
|
|||||||
_reset();
|
_reset();
|
||||||
_error = 0;
|
_error = 0;
|
||||||
|
|
||||||
|
wifi_set_sleep_type(NONE_SLEEP_T);
|
||||||
|
|
||||||
uint32_t updateStartAddress = 0;
|
uint32_t updateStartAddress = 0;
|
||||||
if (command == U_FLASH) {
|
if (command == U_FLASH) {
|
||||||
//size of current sketch rounded to a sector
|
//size of current sketch rounded to a sector
|
||||||
|
Loading…
x
Reference in New Issue
Block a user