From 902deed36237f5a4a2229d410c72cbfdc0a84b4e Mon Sep 17 00:00:00 2001 From: Foxushka <135865149+Foxushka@users.noreply.github.com> Date: Wed, 6 Sep 2023 23:47:10 +0300 Subject: [PATCH] Eh --- 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 bf37eb7c..44f21ce0 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[15] = {}; + uint8_t responseData[16] = {}; 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, 15, responseData); + return data_frame_make(cmd, STATUS_DEVICE_SUCCESS, 16, responseData); } data_frame_tx_t *cmd_processor_set_mf1_detection_enable(uint16_t cmd, uint16_t status, uint16_t length, uint8_t *data) {