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: FATFileHandle.cpp
- Revision:
- 4:3ff2606d5713
- Parent:
- 2:b6669c987c8e
- Child:
- 8:c4baca9a2c3d
diff -r e960e2b81a3c -r 3ff2606d5713 FATFileHandle.cpp
--- a/FATFileHandle.cpp Mon Mar 17 14:09:00 2014 +0000
+++ b/FATFileHandle.cpp Thu Aug 28 13:15:31 2014 +0100
@@ -38,13 +38,13 @@
ssize_t FATFileHandle::write(const void* buffer, size_t length) {
UINT n;
FRESULT res = f_write(&_fh, buffer, length, &n);
- if (res) {
+ if (res) {
debug_if(FFS_DBG, "f_write() failed: %d", res);
return -1;
}
return n;
}
-
+
ssize_t FATFileHandle::read(void* buffer, size_t length) {
debug_if(FFS_DBG, "read(%d)\n", length);
UINT n;