https://os.mbed.com/users/sayzyas
Fork of FATFileSystem by
Diff: FATFileHandle.cpp
- Revision:
- 4:3ff2606d5713
- Parent:
- 2:b6669c987c8e
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;