WizziLab / modem_ref_v5_3_217

Dependents:   modem_ref_helper_for_v5_3_217

Revision:
17:b4ea2a912fd3
Parent:
14:a9c324663732
Child:
18:a11302a76e96
--- a/modem_ref.cpp	Thu Sep 21 13:45:34 2017 +0000
+++ b/modem_ref.cpp	Fri Sep 22 14:04:46 2017 +0000
@@ -510,8 +510,11 @@
     REF_PRINT("SEND FILE[%d] CONTENTS @%d %d Bytes (itf %d Bytes)\n",fid,offset,length,itf_length);
     ALP_ACTION_TAG(p,id,true);
     ALP_ACTION_FORWARD(p,itf,itf_length);
-    // NOP action to get istats on ACKs
-    ALP_ACTION_NOP(p,true);
+    if (istatus)
+    {
+        // NOP action to get istats on ACKs
+        ALP_ACTION_NOP(p,true);
+    }
     ALP_ACTION_RSP_F_DATA(p,fid,offset,length,data);
     SERIAL_SEND(WC_FLOW_ALP_UNS,tmp, (u8)(p-tmp));
     DEALLOC_BUFFER(tmp);