forked version of FATFileSystemEx

Fork of FATFileSystem by mbed official

Revision:
4:c9dcfcfd0c5a
Parent:
2:b6669c987c8e
--- a/FATFileHandle.cpp	Mon Mar 17 14:09:00 2014 +0000
+++ b/FATFileHandle.cpp	Wed Aug 20 00:20:41 2014 +0000
@@ -36,13 +36,18 @@
 }
 
 ssize_t FATFileHandle::write(const void* buffer, size_t length) {
+#ifdef FAT_TINY
+    return -1;
+#else
     UINT n;
+
     FRESULT res = f_write(&_fh, buffer, length, &n);
     if (res) { 
         debug_if(FFS_DBG, "f_write() failed: %d", res);
         return -1;
     }
     return n;
+#endif
 }
         
 ssize_t FATFileHandle::read(void* buffer, size_t length) {
@@ -77,12 +82,16 @@
 }
 
 int FATFileHandle::fsync() {
+#ifdef FAT_TINY
+    return -1;
+#else
     FRESULT res = f_sync(&_fh);
     if (res) {
         debug_if(FFS_DBG, "f_sync() failed: %d\n", res);
         return -1;
     }
     return 0;
+#endif
 }
 
 off_t FATFileHandle::flen() {