mirror of
https://github.com/polhenarejos/pico-openpgp.git
synced 2026-08-24 21:46:57 +01:00
Report object deletion failures
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
+3
-1
@@ -1097,7 +1097,9 @@ static int cmd_piv_put_data(void) {
|
||||
file_put_data(ef, CONST_BYTE_ARRAY(a53.data, a53.len));
|
||||
}
|
||||
else {
|
||||
flash_clear_file(ef);
|
||||
if (flash_clear_file(ef) != PICOKEYS_OK) {
|
||||
return SW_MEMORY_FAILURE();
|
||||
}
|
||||
}
|
||||
flash_commit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user