From b7a6a3fc07b06277c9e4b27be33d486d4e4eae21 Mon Sep 17 00:00:00 2001 From: turbocool3r Date: Mon, 8 Jul 2024 01:58:50 +0300 Subject: [PATCH] Remove amiibo-specific code. --- firmware/application/src/rfid/nfctag/hf/nfc_mf0_ntag.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/firmware/application/src/rfid/nfctag/hf/nfc_mf0_ntag.c b/firmware/application/src/rfid/nfctag/hf/nfc_mf0_ntag.c index f50f2bc..0c37d37 100644 --- a/firmware/application/src/rfid/nfctag/hf/nfc_mf0_ntag.c +++ b/firmware/application/src/rfid/nfctag/hf/nfc_mf0_ntag.c @@ -125,8 +125,6 @@ NRF_LOG_MODULE_REGISTER(); // 0x11 ntag215 // 0x13 ntag216 const uint8_t ntagVersion[8] = {0x00, 0x04, 0x04, 0x02, 0x01, 0x00, 0x11, 0x03}; -/* pwd auth for amiibo */ -uint8_t ntagPwdOK[2] = {0x80, 0x80}; // Data structure pointer to the label information static nfc_tag_mf0_ntag_information_t *m_tag_information = NULL; @@ -839,11 +837,7 @@ static void handle_pwd_auth_command(uint8_t *p_data) { m_tag_authenticated = true; // TODO: this should be possible to reset somehow // Send the PACK value back - if (m_tag_information->config.mode_uid_magic) { - nfc_tag_14a_tx_bytes(ntagPwdOK, 2, true); - } else { - nfc_tag_14a_tx_bytes(m_tag_information->memory[first_cfg_page + CONF_PACK_PAGE_OFFSET], 2, true); - } + nfc_tag_14a_tx_bytes(m_tag_information->memory[first_cfg_page + CONF_PACK_PAGE_OFFSET], 2, true); } static void handle_check_tearing_event(int index) {