Fix compiling without logfile feature

This commit is contained in:
d0k3
2016-02-12 17:05:20 +01:00
parent 63cd6c546f
commit e6d3cc72db
+3 -1
View File
@@ -295,9 +295,11 @@ size_t LogWrite(const char* text)
if (bytes_written != tlen) return 0;
f_write(&lfile, &newline, 1, &bytes_written);
if (bytes_written != 1) return 0;
#endif
return f_size(&lfile); // return the current position
#else
return 0;
#endif
}
static uint64_t ClustersToBytes(FATFS* fs, DWORD clusters)