Update http_client_ota.c
This commit is contained in:
parent
dec71bb395
commit
805151458e
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ static unsigned int ota_firmaware_dowload_callback(char *buf, uint16_t size)
|
||||||
offset += 4;
|
offset += 4;
|
||||||
size -= 4;
|
size -= 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Write into Flash
|
||||||
sdk_spi_flash_write(flash_offset, (uint32_t *) buf, size);
|
sdk_spi_flash_write(flash_offset, (uint32_t *) buf, size);
|
||||||
flash_offset += size;
|
flash_offset += size;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue