Update http_client_ota.c

This commit is contained in:
apiel 2018-07-26 19:22:11 +02:00 committed by GitHub
parent dec71bb395
commit 805151458e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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