mirror of
https://github.com/pine64/blisp.git
synced 2025-03-11 09:28:56 +00:00
Fixed off-by-one error in flash erase
This commit is contained in:
parent
c30287e49d
commit
87174b7682
@ -42,7 +42,7 @@ blisp_return_t blisp_single_download() {
|
|||||||
printf("Erasing the area, this might take a while...\n");
|
printf("Erasing the area, this might take a while...\n");
|
||||||
ret = blisp_device_flash_erase(
|
ret = blisp_device_flash_erase(
|
||||||
&device, *single_download_location->ival,
|
&device, *single_download_location->ival,
|
||||||
*single_download_location->ival + data_file_size + 1);
|
*single_download_location->ival + data_file_size - 1);
|
||||||
if (ret != BLISP_OK) {
|
if (ret != BLISP_OK) {
|
||||||
fprintf(stderr, "Failed to erase.\n");
|
fprintf(stderr, "Failed to erase.\n");
|
||||||
goto exit2;
|
goto exit2;
|
||||||
|
Loading…
Reference in New Issue
Block a user