From 17db1286a8f632aeaa38db65f68e9f3b8a58561d Mon Sep 17 00:00:00 2001 From: RogueMaster Date: Fri, 4 Nov 2022 13:37:07 -0400 Subject: [PATCH] fix issue? --- lib/nfc/helpers/iso7816.c | 2 +- lib/nfc/helpers/iso7816.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nfc/helpers/iso7816.c b/lib/nfc/helpers/iso7816.c index e06a98fc4..03e695e4b 100644 --- a/lib/nfc/helpers/iso7816.c +++ b/lib/nfc/helpers/iso7816.c @@ -14,7 +14,7 @@ TlvInfo iso7816_tlv_parse(const uint8_t* data) { tlv.tag = *(data++); tlv.ber.constructed = ((tlv.tag & 0x20) != 0); - tlv.ber.class = (tlv.tag >> 6) & 0x03; + tlv.ber.classVar = (tlv.tag >> 6) & 0x03; if((tlv.tag & 0x1f) == 0x1f) { // BER-TLV, multi byte tag tlv.tag <<= 8; diff --git a/lib/nfc/helpers/iso7816.h b/lib/nfc/helpers/iso7816.h index 7d9a9b07b..ae3c85871 100644 --- a/lib/nfc/helpers/iso7816.h +++ b/lib/nfc/helpers/iso7816.h @@ -15,7 +15,7 @@ typedef struct { struct { uint16_t tag; uint8_t constructed : 1; - uint8_t class : 2; + uint8_t classVar : 2; } ber; size_t length; const uint8_t* value;