fix assignment from incompatible pointer type

This commit is contained in:
Alexandre Piel 2018-07-26 21:28:48 +02:00
parent 805151458e
commit 9c0b0e7c89

View file

@ -76,7 +76,7 @@ static unsigned int ota_firmaware_dowload_callback(char *buf, uint16_t size)
memcpy(&first_word, buf, 4); memcpy(&first_word, buf, 4);
sdk_spi_flash_write(flash_offset, &first_word, 4); sdk_spi_flash_write(flash_offset, &first_word, 4);
memmove(LWIP_MEM_ALIGN(buf),&buf[1],size-4); memmove(LWIP_MEM_ALIGN(buf),&buf[1],size-4);
buf = (uint32_t *)LWIP_MEM_ALIGN(buf); buf = LWIP_MEM_ALIGN(buf);
offset += 4; offset += 4;
size -= 4; size -= 4;
} }