FreeCalypso > hg > fc-sim-sniff
diff sw/sniff-dec/command.c @ 57:eb4274e7f4da
simsniff-dec: decode SELECT file IDs
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Wed, 04 Oct 2023 03:54:00 +0000 |
| parents | 966a54303d68 |
| children |
line wrap: on
line diff
--- a/sw/sniff-dec/command.c Wed Oct 04 01:18:50 2023 +0000 +++ b/sw/sniff-dec/command.c Wed Oct 04 03:54:00 2023 +0000 @@ -89,6 +89,8 @@ sw1 = rx_byte; if (data_sofar) print_data(); + if (cmd_hdr[1] == 0xA4 && cmd_hdr[4] == 2 && data_sofar == 2) + decode_file_id((data_buf[0] << 8) | data_buf[1]); state = STATE_CMD_SW; }
