fix assignment from incompatible pointer type
This commit is contained in:
parent
805151458e
commit
9c0b0e7c89
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue