From 0398d7e9a8d395f5d1f08cfdfc580d43e98ef967 Mon Sep 17 00:00:00 2001 From: Foxushka <135865149+Foxushka@users.noreply.github.com> Date: Wed, 6 Sep 2023 23:45:32 +0300 Subject: [PATCH] Lite doesn't have this exported --- firmware/application/src/app_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/application/src/app_cmd.c b/firmware/application/src/app_cmd.c index 6243a18..bf37eb7 100644 --- a/firmware/application/src/app_cmd.c +++ b/firmware/application/src/app_cmd.c @@ -476,13 +476,13 @@ data_frame_tx_t *cmd_processor_get_mf1_anti_coll_data(uint16_t cmd, uint16_t sta if (tag_type[0] == TAG_TYPE_UNKNOWN) { return data_frame_make(cmd, STATUS_PAR_ERR, 0, data); // no data in slot, don't send garbage } - uint8_t responseData[sizeof(picc_14a_tag_t)] = {}; + uint8_t responseData[15] = {}; nfc_tag_14a_coll_res_reference_t *info = get_saved_mifare_coll_res(); memcpy(responseData, info->uid, *info->size); responseData[10] = *info->size; // size is 2 byte len, but... responseData[12] = info->sak[0]; memcpy(&responseData[13], info->atqa, 2); - return data_frame_make(cmd, STATUS_DEVICE_SUCCESS, sizeof(picc_14a_tag_t), responseData); + return data_frame_make(cmd, STATUS_DEVICE_SUCCESS, 15, responseData); } data_frame_tx_t *cmd_processor_set_mf1_detection_enable(uint16_t cmd, uint16_t status, uint16_t length, uint8_t *data) {