From 8be3a37bb9331879300a744406aeeb8db2eecdf2 Mon Sep 17 00:00:00 2001 From: g3gg0 Date: Tue, 19 May 2020 01:19:27 +0200 Subject: [PATCH] fix transmitting too many bytes to host in case of a failed SetPassSlixLIso15693 --- armsrc/iso15693.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index b2e654b7..5e5a7f1e 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -1834,13 +1834,13 @@ void DisablePrivacySlixLIso15693(uint32_t password) { switch(SetPassSlixLIso15693(start_time, &eof_time, 4, password)) { case SLIX_ERR_NORESP: Dbprintf(" [i] No tag found"); - cmd_send(CMD_NACK, 0, 0, 0, NULL, ISO15693_MAX_RESPONSE_LENGTH); + cmd_send(CMD_NACK, 0, 0, 0, NULL, 0); LED_C_ON(); return; case SLIX_ERR_INVPASS: Dbprintf(" [E] Password was not accepted"); - cmd_send(CMD_NACK, 1, 0, 0, NULL, ISO15693_MAX_RESPONSE_LENGTH); + cmd_send(CMD_NACK, 1, 0, 0, NULL, 0); LED_B_ON(); return; }