This commit is contained in:
Pavel Zakopaylo 2024-12-13 02:49:17 +03:00 committed by GitHub
commit 07f8e92f6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -360,13 +360,13 @@ blisp_return_t blisp_device_flash_erase(struct blisp_device* device,
*(uint32_t*)(payload + 4) = end_address;
blisp_return_t ret = blisp_send_command(device, 0x30, payload, 8, true);
if (ret < 0)
if (ret != BLISP_OK)
return ret;
do {
ret = blisp_receive_response(device, false);
} while (ret == BLISP_ERR_PENDING);
return 0;
return ret;
}
blisp_return_t blisp_device_flash_write(struct blisp_device* device,