Skip to content

Commit

Permalink
Fix slot deletion.
Browse files Browse the repository at this point in the history
Fixes #89.

Signed-off-by: Pol Henarejos <[email protected]>
  • Loading branch information
polhenarejos committed Jan 19, 2025
1 parent 6265992 commit ed9c46d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/fido/otp.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,7 @@ int cmd_otp() {
}
// Delete slot
delete_file(ef);
if (!file_has_data(search_dynamic_file(EF_OTP_SLOT1)) &&
!file_has_data(search_dynamic_file(EF_OTP_SLOT2))) {
config_seq = 0;
}
config_seq++;
return otp_status();
}
else if (p1 == 0x04 || p1 == 0x05) {
Expand Down

0 comments on commit ed9c46d

Please sign in to comment.