Skip to content

Commit

Permalink
iso14443_3a: use macros instead of literal
Browse files Browse the repository at this point in the history
  • Loading branch information
gornekich committed Oct 22, 2023
1 parent 5e5696c commit bc73b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nfc/protocols/iso14443_3a/iso14443_3a.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ uint32_t iso14443_3a_get_cuid(const Iso14443_3aData* data) {

uint32_t cuid = 0;
const uint8_t* cuid_start = data->uid;
if(data->uid_len == 7) {
if(data->uid_len == ISO14443_3A_UID_7_BYTES) {
cuid_start = &data->uid[3];
}
cuid = (cuid_start[0] << 24) | (cuid_start[1] << 16) | (cuid_start[2] << 8) | (cuid_start[3]);
Expand Down

0 comments on commit bc73b34

Please sign in to comment.