FreeCalypso > hg > fc-sim-sniff
changeset 44:74330513121e
simtrace3-sniff-dec: initial cosmetic fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 31 Aug 2023 08:55:34 +0000 |
parents | 6bef393a700e |
children | b0524d1dc6ef |
files | sw/sniff-dec/atr.c sw/sniff-dec/dispatch.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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; } }