Skip to content

Commit

Permalink
fix param error
Browse files Browse the repository at this point in the history
  • Loading branch information
dangfan committed Dec 13, 2024
1 parent e8e0501 commit 9ce7027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applets/admin/admin.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ __attribute__((weak)) int admin_vendor_hw_sn(const CAPDU *capdu, RAPDU *rapdu) {
__attribute__((weak)) int admin_vendor_nfc_enable(const CAPDU *capdu, RAPDU *rapdu, bool pin_validated) {
UNUSED(capdu);
UNUSED(rapdu);
UNUSED(pin_validated);
return 0;
}

Expand Down Expand Up @@ -224,7 +225,7 @@ int admin_process_apdu(const CAPDU *capdu, RAPDU *rapdu) {
goto done;

case ADMIN_INS_NFC_ENABLE:
ret = admin_vendor_nfc_enable(capdu, rapdu);
ret = admin_vendor_nfc_enable(capdu, rapdu, pin.is_validated);
goto done;

case ADMIN_INS_FACTORY_RESET:
Expand Down

0 comments on commit 9ce7027

Please sign in to comment.