FreeCalypso > hg > freecalypso-tools
comparison rvinterf/asyncshell/at.c @ 424:dd0247097097
fc-shell: implemented 30 ms delay for batch mode AT commands with -p
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 28 Oct 2018 00:38:13 +0000 |
parents | bbc41034f14c |
children | e13f60d4f8dd |
comparison
equal
deleted
inserted
replaced
423:e40bb5a6c6b9 | 424:dd0247097097 |
---|---|
12 #include <unistd.h> | 12 #include <unistd.h> |
13 #include "pktmux.h" | 13 #include "pktmux.h" |
14 #include "limits.h" | 14 #include "limits.h" |
15 #include "exitcodes.h" | 15 #include "exitcodes.h" |
16 | 16 |
17 extern char *rvinterf_ttyport; | |
17 extern u_char rvi_msg[]; | 18 extern u_char rvi_msg[]; |
18 extern int rvi_msg_len; | 19 extern int rvi_msg_len; |
19 extern int oneshot_nowait; | 20 extern int oneshot_nowait; |
20 extern int sock; | 21 extern int sock; |
21 | 22 |
57 { | 58 { |
58 fd_set fds; | 59 fd_set fds; |
59 int rc; | 60 int rc; |
60 | 61 |
61 if (!oneshot_nowait) { | 62 if (!oneshot_nowait) { |
63 if (rvinterf_ttyport) | |
64 usleep(30000); | |
62 init(); /* to catch the response properly */ | 65 init(); /* to catch the response properly */ |
63 ati_rx_control(1); | 66 ati_rx_control(1); |
64 } | 67 } |
65 rc = send_string_to_ati(cmd); | 68 rc = send_string_to_ati(cmd); |
66 if (rc) | 69 if (rc) |