Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Picaso_4DGL-32PTU_Response.cpp
- 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