Rihards Balass / 4DGL-mbed-32PTU
Revision:
27:dbf79d116497
Parent:
26:c6a803706a42
--- a/Picaso_4DGL-32PTU_Response.cpp	Wed Sep 28 12:41:32 2016 +0000
+++ b/Picaso_4DGL-32PTU_Response.cpp	Thu Sep 29 19:40:53 2016 +0000
@@ -285,10 +285,8 @@
 #endif
     while (index < 3) wait_ms(100); // wait for screen answer
     short len = rxBuf[1] << 8 | rxBuf[2];
-    //char *filename;
-    //filename = (char *)malloc(sizeof(char) * len);
-    //for(i = 0; i < size; i++) filename[i] = 0;
     while (index < 3 + len) wait_ms(100); // wait for whole answer
+    
     for (i = 0; i < len; i++)
         out[i] = rxBuf[j++]; // build filename string