fix transmitting too many bytes to host in case of a failed SetPassSlixLIso15693

This commit is contained in:
g3gg0 2020-05-19 01:19:27 +02:00
parent 3d411bee02
commit 8be3a37bb9

View file

@ -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;
}