FreeCalypso > hg > freecalypso-tools
comparison rvinterf/tmsh/l1resp.c @ 136:da4d4af80fdd
fc-tmsh: ttw response handling implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 20 Feb 2017 02:25:53 +0000 |
parents | 40807eb35ffe |
children | 79e71354ba7b |
comparison
equal
deleted
inserted
replaced
135:40807eb35ffe | 136:da4d4af80fdd |
---|---|
305 sprintf(dp, " %02X", rftr_table_data[i++]); | 305 sprintf(dp, " %02X", rftr_table_data[i++]); |
306 } | 306 } |
307 async_msg_output(buf); | 307 async_msg_output(buf); |
308 } | 308 } |
309 } | 309 } |
310 | |
311 void | |
312 l1tm_ttw_response() | |
313 { | |
314 char buf[80]; | |
315 | |
316 if (rvi_msg[3]) { | |
317 if (rvi_msg_len == 5) { | |
318 sprintf(buf, "ttw error %u (0x%02X)", | |
319 rvi_msg[3], rvi_msg[3]); | |
320 async_msg_output(buf); | |
321 } else | |
322 print_etm_pkt_raw("ttw long error response"); | |
323 return; | |
324 } | |
325 if (rvi_msg_len < 5 || rvi_msg_len > 6) { | |
326 print_etm_pkt_raw("ttw response wrong length"); | |
327 return; | |
328 } | |
329 async_msg_output("ttw OK"); | |
330 } |