FreeCalypso > hg > freecalypso-tools
comparison rvinterf/asyncshell/pktsort.c @ 75:bbc41034f14c
fc-shell: added support for AT commands in one-shot mode
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 27 Oct 2016 02:13:38 +0000 |
parents | d43d82cbfb85 |
children | 31a36b400cdf |
comparison
equal
deleted
inserted
replaced
74:84920d3d97c6 | 75:bbc41034f14c |
---|---|
13 #include "localtypes.h" | 13 #include "localtypes.h" |
14 #include "exitcodes.h" | 14 #include "exitcodes.h" |
15 | 15 |
16 extern u_char rvi_msg[]; | 16 extern u_char rvi_msg[]; |
17 extern int rvi_msg_len; | 17 extern int rvi_msg_len; |
18 extern int oneshot_mode; | |
18 | 19 |
19 static void | 20 static void |
20 process_rvt() | 21 process_rvt() |
21 { | 22 { |
22 u32 useid; | 23 u32 useid; |
55 char buf[MAX_PKT_FROM_TARGET*4+2]; | 56 char buf[MAX_PKT_FROM_TARGET*4+2]; |
56 | 57 |
57 strcpy(buf, "ATI: "); | 58 strcpy(buf, "ATI: "); |
58 safe_print_trace(rvi_msg + 2, rvi_msg_len - 2, buf + 5); | 59 safe_print_trace(rvi_msg + 2, rvi_msg_len - 2, buf + 5); |
59 async_msg_output(buf); | 60 async_msg_output(buf); |
61 if (oneshot_mode) | |
62 oneshot_at_check_response(); | |
60 } | 63 } |
61 | 64 |
62 void | 65 void |
63 process_pkt_from_target() | 66 process_pkt_from_target() |
64 { | 67 { |