From 9cfe762043cc5569fdd06c862c949f61e533d8d9 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Fri, 3 Jun 2022 20:11:14 +0200 Subject: [PATCH] low_flash_available() should be called outside. Signed-off-by: Pol Henarejos --- src/fs/file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/fs/file.c b/src/fs/file.c index e20eed1..a89740d 100644 --- a/src/fs/file.c +++ b/src/fs/file.c @@ -375,7 +375,6 @@ int meta_add(uint16_t fid, const uint8_t *data, uint16_t len) { free(fdata); if (r != CCID_OK) return CCID_EXEC_ERROR; - low_flash_available(); return CCID_OK; } else { //needs reallocation @@ -396,7 +395,6 @@ int meta_add(uint16_t fid, const uint8_t *data, uint16_t len) { free(fdata); if (r != CCID_OK) return CCID_EXEC_ERROR; - low_flash_available(); return CCID_OK; } }