FreeCalypso > hg > freecalypso-tools
changeset 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 | e40bb5a6c6b9 |
children | 7eddc2578fdb |
files | rvinterf/asyncshell/at.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rvinterf/asyncshell/at.c Sun Oct 28 00:30:16 2018 +0000 +++ b/rvinterf/asyncshell/at.c Sun Oct 28 00:38:13 2018 +0000 @@ -14,6 +14,7 @@ #include "limits.h" #include "exitcodes.h" +extern char *rvinterf_ttyport; extern u_char rvi_msg[]; extern int rvi_msg_len; extern int oneshot_nowait; @@ -59,6 +60,8 @@ int rc; if (!oneshot_nowait) { + if (rvinterf_ttyport) + usleep(30000); init(); /* to catch the response properly */ ati_rx_control(1); }