FreeCalypso > hg > freecalypso-tools
comparison rvinterf/lowlevel/format.c @ 931:bb7a03cc1e43
rvtdump, tfc139: restore old 'TM:' output format
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Tue, 23 May 2023 06:04:29 +0000 |
| parents | ab771ce34fac |
| children | 3d1abb9f05ef |
comparison
equal
deleted
inserted
replaced
| 930:a38430e03e73 | 931:bb7a03cc1e43 |
|---|---|
| 101 } | 101 } |
| 102 | 102 |
| 103 void | 103 void |
| 104 print_tm_output_raw() | 104 print_tm_output_raw() |
| 105 { | 105 { |
| 106 int i; | |
| 107 char fmtbuf[MAX_PKT_FROM_TARGET*3+1]; | |
| 108 char *dp = fmtbuf; | |
| 109 | |
| 110 strcpy(dp, "TM:"); | |
| 111 dp += 3; | |
| 112 for (i = 1; i < rxpkt_len; i++) { | |
| 113 sprintf(dp, " %02X", rxpkt[i]); | |
| 114 dp += 3; | |
| 115 } | |
| 116 *dp = '\0'; | |
| 117 output_line(fmtbuf); | |
| 118 } | |
| 119 | |
| 120 void | |
| 121 print_tm_output_new() | |
| 122 { | |
| 106 output_line("Rx Test Mode packet"); | 123 output_line("Rx Test Mode packet"); |
| 107 packet_hex_dump(rxpkt, (unsigned) rxpkt_len, output_cont); | 124 packet_hex_dump(rxpkt, (unsigned) rxpkt_len, output_cont); |
| 108 } | 125 } |
| 109 | 126 |
| 110 void | 127 void |
