From 805151458ebf0cdbe231f2bcc5accb53ed671264 Mon Sep 17 00:00:00 2001 From: apiel Date: Thu, 26 Jul 2018 19:22:11 +0200 Subject: [PATCH] Update http_client_ota.c --- extras/http_client_ota/http_client_ota.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extras/http_client_ota/http_client_ota.c b/extras/http_client_ota/http_client_ota.c index ebcc985..06de317 100644 --- a/extras/http_client_ota/http_client_ota.c +++ b/extras/http_client_ota/http_client_ota.c @@ -80,6 +80,8 @@ static unsigned int ota_firmaware_dowload_callback(char *buf, uint16_t size) offset += 4; size -= 4; } + + // Write into Flash sdk_spi_flash_write(flash_offset, (uint32_t *) buf, size); flash_offset += size;