low_flash_available() should be called outside.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-06-03 20:11:14 +02:00
parent 07305e6fd7
commit 9cfe762043
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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;
}
}