fix size mismatch

This commit is contained in:
Michele Balistreri 2018-06-16 12:35:04 +02:00
parent 4c9aa84d50
commit 912d12f9cc
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ void _load_firmware(uintptr_t newfw, uint8_t newfw_bank, uint8_t newfw_page, uin
do {
flash_erase(FLASH_BANK1, FIRMWARE_FIRST_PAGE, FIRMWARE_PAGE_COUNT);
flash_copy(UINT32_PTR(newfw), UINT32_PTR(FIRMWARE_START), UINT32_PTR(newfw)[1]);
flash_copy(UINT32_PTR(newfw), UINT32_PTR(FIRMWARE_START), (UINT32_PTR(newfw)[1]/4));
} while(check_firmware(FIRMWARE_START) != 0);
if (remove_newfw) {