firmware/sniffer: Fix copy+paste when logging invalid INS bytes

Change-Id: I2679415f1853d4b4a33fca33791fb0bfc6908a1b
This commit is contained in:
Harald Welte
2022-11-15 21:19:26 +01:00
parent 5f651e510f
commit 5523faf61f

View File

@@ -718,7 +718,7 @@ static void process_byte_tpdu(uint8_t byte)
break;
case TPDU_S_INS:
if ((0x60 == (byte & 0xf0)) || (0x90 == (byte & 0xf0))) {
TRACE_WARNING("invalid CLA 0x%02x\n\r", byte);
TRACE_WARNING("invalid INS 0x%02x\n\r", byte);
led_blink(LED_RED, BLINK_2F_O); /* indicate error to user */
usb_send_tpdu(SNIFF_DATA_FLAG_ERROR_MALFORMED); /* send ATR to host software using USB */
change_state(ISO7816_S_WAIT_TPDU); /* go back to TPDU state */