Fix slot deletion.
Fixes #89. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -391,10 +391,7 @@ int cmd_otp() {
|
|||||||
}
|
}
|
||||||
// Delete slot
|
// Delete slot
|
||||||
delete_file(ef);
|
delete_file(ef);
|
||||||
if (!file_has_data(search_dynamic_file(EF_OTP_SLOT1)) &&
|
config_seq++;
|
||||||
!file_has_data(search_dynamic_file(EF_OTP_SLOT2))) {
|
|
||||||
config_seq = 0;
|
|
||||||
}
|
|
||||||
return otp_status();
|
return otp_status();
|
||||||
}
|
}
|
||||||
else if (p1 == 0x04 || p1 == 0x05) {
|
else if (p1 == 0x04 || p1 == 0x05) {
|
||||||
|
|||||||
Reference in New Issue
Block a user