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.
Dependencies: C027_Support mbed-dev
Fork of C027_SupportTest_coapp by
Diff: main.cpp
- Revision:
- 24:81f5b43a6585
- Parent:
- 22:078f410ef2c7
- Child:
- 27:fe3b383dd4ec
--- a/main.cpp Fri Jun 06 15:01:52 2014 +0000
+++ b/main.cpp Thu Jun 12 12:39:24 2014 +0000
@@ -64,7 +64,7 @@
{
memset(buf, 0, sizeof(buf));
int len = mdm.readFile(filename, buf, sizeof(buf));
- if (len)
+ if (len >= 0)
printf("readFile %d \"%.*s\"\r\n", len, len, buf);
mdm.delFile(filename);
}
