aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ashell/ihex-handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ashell/ihex-handler.c b/src/ashell/ihex-handler.c
index 37195a2..233b535 100644
--- a/src/ashell/ihex-handler.c
+++ b/src/ashell/ihex-handler.c
@@ -150,7 +150,7 @@ uint32_t ihex_process_finish()
{
if (upload_state == UPLOAD_ERROR) {
printf("[Error] Callback handle error \n");
- fs_close(zfile);
+ fs_close_alloc(zfile);
ashell_process_start();
return 1;
@@ -159,7 +159,7 @@ uint32_t ihex_process_finish()
if (upload_state != UPLOAD_FINISHED)
return 1;
- fs_close(zfile);
+ fs_close_alloc(zfile);
ihex_end_read(&ihex);
comms_print("[EOF]\n");