# HG changeset patch # User Mychaela Falconia # Date 1693472134 0 # Node ID 74330513121e99fd63c37182bab89a6fa969fbfe # Parent 6bef393a700efd8a21d46ac3ae084a04cf35319c simtrace3-sniff-dec: initial cosmetic fixes diff -r 6bef393a700e -r 74330513121e sw/sniff-dec/atr.c --- a/sw/sniff-dec/atr.c Thu Aug 31 08:47:50 2023 +0000 +++ b/sw/sniff-dec/atr.c Thu Aug 31 08:55:34 2023 +0000 @@ -35,8 +35,6 @@ void atr_begin() { - strcpy(atr_start_timestamp, linebuf); - atr_start_line = lineno; substate = SUBST_TS; byte_count = 0; } @@ -112,6 +110,8 @@ substate = SUBST_T0; return; case SUBST_T0: + strcpy(atr_start_timestamp, linebuf); + atr_start_line = lineno; latch_y = rx_byte & 0xF0; latch_k = rx_byte & 0x0F; have_tck = 0; diff -r 6bef393a700e -r 74330513121e sw/sniff-dec/dispatch.c --- a/sw/sniff-dec/dispatch.c Thu Aug 31 08:47:50 2023 +0000 +++ b/sw/sniff-dec/dispatch.c Thu Aug 31 08:55:34 2023 +0000 @@ -24,12 +24,12 @@ handle_rst_change() { if (fpga_word & 0x4000) { - printf(PREFIX "RST high, card session begin\n", + printf(PREFIX "RST high, card session begins\n", linebuf, lineno); state = STATE_ATR_TS; atr_begin(); } else { - printf(PREFIX "RST low, card session end\n", linebuf, lineno); + printf(PREFIX "RST low, card session ends\n", linebuf, lineno); state = STATE_RSTLOW; } }