diff --git a/sys/fs/fat/fat.c b/sys/fs/fat/fat.c index 760641c..d5ae5a6 100644 --- a/sys/fs/fat/fat.c +++ b/sys/fs/fat/fat.c @@ -67,12 +67,12 @@ //fl_listdirectory("/bin/"); // Delete File - if (fl_remove("/file.bin") < 0) - kprintf("ERROR: Delete file failed\n"); + //if (fl_remove("/file.bin") < 0) + // kprintf("ERROR: Delete file failed\n"); // Create File file = fl_fopen("/file.bin", "w"); - unsigned char data[] = { 1, 2, 3, 4 }; + unsigned char data[] = { 'a', '\n', 'b', '\n', 'c', '\n' }; if (file) { // Write some data if (fl_fwrite(data, 1, sizeof(data), file) != sizeof(data)) diff --git a/sys/fs/fat/fat_filelib.c b/sys/fs/fat/fat_filelib.c index 3fa2ae8..5c37840 100644 --- a/sys/fs/fat/fat_filelib.c +++ b/sys/fs/fat/fat_filelib.c @@ -727,10 +727,8 @@ // Create New #if FATFS_INC_WRITE_SUPPORT - if (!file && (flags & FILE_CREATE)) { + if (!file && (flags & FILE_CREATE)) file = _create_file(path); - kprintf("[%s:%i]", __FILE__, __LINE__); - } #endif // Write Existing (and not open due to read or create)