From 1fbb838d3aa4bda965ebc4da0e08d17b61ba7bd7 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 24 Feb 2021 20:46:06 +0100 Subject: [PATCH] cppchecker --- armsrc/Standalone/hf_aveful.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/armsrc/Standalone/hf_aveful.c b/armsrc/Standalone/hf_aveful.c index 475aadfec..dc481fc47 100644 --- a/armsrc/Standalone/hf_aveful.c +++ b/armsrc/Standalone/hf_aveful.c @@ -68,11 +68,11 @@ uint16_t get_ev1_version(iso14a_card_select_t card, uint8_t *version) { return mifare_sendcmd(MIFARE_ULEV1_VERSION, NULL, 0, version, NULL, NULL); } -uint16_t get_ev1_signature(iso14a_card_select_t card, uint8_t *response) { +uint16_t get_ev1_signature(iso14a_card_select_t card, uint8_t *signature) { uint8_t cmd[4] = {MIFARE_ULEV1_READSIG, 0x00, 0x00, 0x00}; AddCrc14A(cmd, 2); ReaderTransmit(cmd, sizeof(cmd), NULL); - return ReaderReceive(response, NULL); + return ReaderReceive(signature, NULL); } uint16_t get_ev1_counter(iso14a_card_select_t card, uint8_t counter, uint8_t *response) { @@ -114,7 +114,6 @@ int get_block_count(iso14a_card_select_t card, uint8_t version[], uint16_t versi else if (memcmp(version, "\x00\x04\x03\x01\x01\x00\x0E", 7) == 0) { block_count = MAX_ULEV1b_BLOCKS; } else if (memcmp(version, "\x00\x04\x03\x02\x01\x00\x0E", 7) == 0) { block_count = MAX_ULEV1b_BLOCKS; } else if (memcmp(version, "\x00\x34\x21\x01\x01\x00\x0E", 7) == 0) { block_count = MAX_ULEV1b_BLOCKS; } // Mikron JSC Russia EV1 41 pages tag - else if (memcmp(version, "\x00\x34\x21\x01\x01\x00\x0E", 7) == 0) { block_count = MAX_UL_BLOCKS; } else if (version[2] == 0x03) { block_count = MAX_ULEV1a_BLOCKS; } } }