From 9ce7027fa01f597690bdfe6c7d4e9a5b7c5dc670 Mon Sep 17 00:00:00 2001 From: Fan DANG Date: Fri, 13 Dec 2024 19:52:39 +0800 Subject: [PATCH] fix param error --- applets/admin/admin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applets/admin/admin.c b/applets/admin/admin.c index dc436b09..e5d8f50d 100644 --- a/applets/admin/admin.c +++ b/applets/admin/admin.c @@ -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; } @@ -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: