mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-11 04:48:15 +02:00
low_flash_available() should be called outside.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -375,7 +375,6 @@ int meta_add(uint16_t fid, const uint8_t *data, uint16_t len) {
|
|||||||
free(fdata);
|
free(fdata);
|
||||||
if (r != CCID_OK)
|
if (r != CCID_OK)
|
||||||
return CCID_EXEC_ERROR;
|
return CCID_EXEC_ERROR;
|
||||||
low_flash_available();
|
|
||||||
return CCID_OK;
|
return CCID_OK;
|
||||||
}
|
}
|
||||||
else { //needs reallocation
|
else { //needs reallocation
|
||||||
@@ -396,7 +395,6 @@ int meta_add(uint16_t fid, const uint8_t *data, uint16_t len) {
|
|||||||
free(fdata);
|
free(fdata);
|
||||||
if (r != CCID_OK)
|
if (r != CCID_OK)
|
||||||
return CCID_EXEC_ERROR;
|
return CCID_EXEC_ERROR;
|
||||||
low_flash_available();
|
|
||||||
return CCID_OK;
|
return CCID_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user