FreeCalypso > hg > freecalypso-sw
diff rvinterf/asyncshell/usercmd.c @ 879:4661b84260a0
fc-shell: AT-over-RVTMUX command sending implemented
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 00:19:28 +0000 |
parents | dab341e172de |
children | 1b1683cda154 |
line wrap: on
line diff
--- a/rvinterf/asyncshell/usercmd.c Sun May 31 08:02:36 2015 +0000 +++ b/rvinterf/asyncshell/usercmd.c Mon Jun 01 00:19:28 2015 +0000 @@ -13,6 +13,7 @@ extern void cmd_disable(); extern void cmd_enable(); +extern void cmd_sendat(); extern void cmd_sendsp(); void @@ -31,6 +32,7 @@ {"exit", cmd_exit}, {"quit", cmd_exit}, {"sp", cmd_sendsp}, + {"str", cmd_sendat}, {0, 0} }; @@ -44,6 +46,10 @@ ; if (!*cp || *cp == '#') return; + if (!strncmp(cp, "AT", 2) || !strncmp(cp, "at", 2)) { + cmd_sendat(cp); + return; + } for (np = cp; *cp && !isspace(*cp); cp++) ; if (*cp)