changeset 217:2f17574d7001

src/g23m-aci/aci/ati_cmd.c: CST extension mechanism reinstated
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 15 Oct 2016 06:27:58 +0000
parents 557041e392a9
children 75ea63a3fce5
files src/g23m-aci/aci/ati_cmd.c
diffstat 1 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/g23m-aci/aci/ati_cmd.c	Sat Oct 15 06:16:40 2016 +0000
+++ b/src/g23m-aci/aci/ati_cmd.c	Sat Oct 15 06:27:58 2016 +0000
@@ -1821,7 +1821,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 ):
@@ -3396,7 +3404,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);