mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-01 04:29:59 -07:00
fix issue?
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user