From 9c0b0e7c895ceba45a6fbc066363e4770fec775b Mon Sep 17 00:00:00 2001 From: Alexandre Piel Date: Thu, 26 Jul 2018 21:28:48 +0200 Subject: [PATCH] fix assignment from incompatible pointer type --- extras/http_client_ota/http_client_ota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/http_client_ota/http_client_ota.c b/extras/http_client_ota/http_client_ota.c index 06de317..29b1118 100644 --- a/extras/http_client_ota/http_client_ota.c +++ b/extras/http_client_ota/http_client_ota.c @@ -76,7 +76,7 @@ static unsigned int ota_firmaware_dowload_callback(char *buf, uint16_t size) memcpy(&first_word, buf, 4); sdk_spi_flash_write(flash_offset, &first_word, 4); memmove(LWIP_MEM_ALIGN(buf),&buf[1],size-4); - buf = (uint32_t *)LWIP_MEM_ALIGN(buf); + buf = LWIP_MEM_ALIGN(buf); offset += 4; size -= 4; }