Trond Enger / d7a_1x

Fork of d7a_1x by WizziLab

Revision:
62:f1e4da5162c2
Parent:
61:87be16080640
Child:
63:afd046faedb0
--- a/src/d7a_alp.cpp	Wed Sep 28 10:04:18 2016 +0000
+++ b/src/d7a_alp.cpp	Tue Oct 04 08:55:52 2016 +0000
@@ -365,7 +365,7 @@
             DPRINT("EOP\r\n");
             
             // If tag only
-            if (!pl->msg->data && !pl->msg->lb)
+            if (!pl->msg->data && !pl->msg->lb && i != 0)
             {
                 // Ignore response
                 d7a_alp_free_msg(pl->msg);
@@ -505,9 +505,6 @@
         ret[i] = NULL;
     }
     
-    // malloc and init first response
-    ret[0] = d7a_alp_new_msg();
-    
     // Construct command
     
     // Tag action