FreeCalypso > hg > freecalypso-tools
comparison rvinterf/tmsh/audioresp.c @ 161:da6950e936bf
fc-tmsh: proper handling of auw responses
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 17 Mar 2017 08:00:19 +0000 |
parents | e4c98a2c1673 |
children | ce7479d28b02 |
comparison
equal
deleted
inserted
replaced
160:e4c98a2c1673 | 161:da6950e936bf |
---|---|
41 } | 41 } |
42 | 42 |
43 static void | 43 static void |
44 auw_response() | 44 auw_response() |
45 { | 45 { |
46 print_etm_pkt_raw("auw response"); | 46 char buf[80]; |
47 | |
48 if (rvi_msg_len != 7) { | |
49 print_etm_pkt_raw("auw response wrong length"); | |
50 return; | |
51 } | |
52 if (rvi_msg[3]) | |
53 sprintf(buf, "auw %u error %u (0x%02X)", rvi_msg[5], | |
54 rvi_msg[3], rvi_msg[3]); | |
55 else | |
56 sprintf(buf, "auw %u OK", rvi_msg[5]); | |
57 async_msg_output(buf); | |
47 } | 58 } |
48 | 59 |
49 void | 60 void |
50 etm_audio_msg_rx() | 61 etm_audio_msg_rx() |
51 { | 62 { |