From 084774d9d7d61c6cdd1a4181f190be5ff27788e0 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Sat, 15 Mar 2025 02:00:40 +0000 Subject: [PATCH] Fix ISO READ BINARY params definitions --- lib/nfc/protocols/type_4_tag/type_4_tag_i.h | 3 +-- lib/nfc/protocols/type_4_tag/type_4_tag_poller_i.c | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/nfc/protocols/type_4_tag/type_4_tag_i.h b/lib/nfc/protocols/type_4_tag/type_4_tag_i.h index b0e319ba9..738d30935 100644 --- a/lib/nfc/protocols/type_4_tag/type_4_tag_i.h +++ b/lib/nfc/protocols/type_4_tag/type_4_tag_i.h @@ -12,9 +12,8 @@ // ISO READ BINARY command and parameters #define TYPE_4_TAG_ISO_READ_CMD 0x00, 0xB0 -#define TYPE_4_TAG_ISO_READ_P1_EMPTY (0x00) #define TYPE_4_TAG_ISO_READ_P1_ID_MASK (1 << 7) -#define TYPE_4_TAG_ISO_READ_P_BEGINNING (0x00) +#define TYPE_4_TAG_ISO_READ_P_BEGINNING 0x00, 0x00 #define TYPE_4_TAG_ISO_READ_P_OFFSET_MAX (32767U) #define TYPE_4_TAG_ISO_READ_LE_FULL (0x00) diff --git a/lib/nfc/protocols/type_4_tag/type_4_tag_poller_i.c b/lib/nfc/protocols/type_4_tag/type_4_tag_poller_i.c index 92caae7d7..e1afdba12 100644 --- a/lib/nfc/protocols/type_4_tag/type_4_tag_poller_i.c +++ b/lib/nfc/protocols/type_4_tag/type_4_tag_poller_i.c @@ -83,7 +83,6 @@ Type4TagError type_4_tag_poller_read_cc(Type4TagPoller* instance) { FURI_LOG_D(TAG, "Read CC"); const uint8_t type_4_tag_read_cc_apdu[] = { TYPE_4_TAG_ISO_READ_CMD, - TYPE_4_TAG_ISO_READ_P1_EMPTY, TYPE_4_TAG_ISO_READ_P_BEGINNING, TYPE_4_TAG_ISO_READ_LE_FULL, }; @@ -179,7 +178,6 @@ Type4TagError type_4_tag_poller_read_ndef(Type4TagPoller* instance) { uint16_t ndef_len; const uint8_t type_4_tag_read_ndef_len_apdu[] = { TYPE_4_TAG_ISO_READ_CMD, - TYPE_4_TAG_ISO_READ_P1_EMPTY, TYPE_4_TAG_ISO_READ_P_BEGINNING, sizeof(ndef_len), };