changeset 883:18d7ced19f88

gsm-fw ATI: reinstate the old extension mechanism in CST until we come up with something better
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sun, 07 Jun 2015 15:40:14 +0000
parents 5ec4c2170cb7
children 353daaa6014d
files gsm-fw/g23m-aci/aci/ati_cmd.c
diffstat 1 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/g23m-aci/aci/ati_cmd.c	Mon Jun 01 01:38:25 2015 +0000
+++ b/gsm-fw/g23m-aci/aci/ati_cmd.c	Sun Jun 07 15:40:14 2015 +0000
@@ -1826,7 +1826,15 @@
   if ( src_params->curAtCmd EQ AT_CMD_EXT )
   {
     g_sa[0] = ( CHAR ) ACI_EXT_STRG_END;
-    rslt = (T_ACI_RETURN)rEXT_Abort(srcId);
+    if (ext_v2_flag EQ TRUE)
+    {
+      rslt = rEXT_Abort(srcId);
+    }
+    else
+    {
+      rslt = rAT_ACP ( g_sa, MAX_CMD_LEN - 1 );
+      aci_sendPString ( srcId, g_sa );
+    }
     switch ( rslt )
     {
       case ( AT_EXCT ):
@@ -3401,7 +3409,15 @@
   g_sa[0] = (CHAR) ACI_EXT_STRG_END;
 
   TRACE_EVENT_P1("aci_FwrdToEXT(): running cmd %s", extCmd);
-  extRslt = (T_ACI_RETURN)rEXT_Execute (src_params->src_id, extCmd);
+  if (ext_v2_flag EQ TRUE)
+  {
+    extRslt = rEXT_Execute (src_params->src_id, extCmd);
+  }
+  else
+  {
+    extRslt = rAT_EXT (extCmd, &lenExt, g_sa, MAX_CMD_LEN - 1);
+    aci_sendPString (src_params->src_id, g_sa);
+  }
 
   ACI_MFREE(extCmd);