From e6d3cc72db151afb4ee499cd801e419225b3f85a Mon Sep 17 00:00:00 2001 From: d0k3 Date: Fri, 12 Feb 2016 17:05:20 +0100 Subject: [PATCH] Fix compiling without logfile feature --- source/fs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/fs.c b/source/fs.c index 952d4a4..f7aeadc 100644 --- a/source/fs.c +++ b/source/fs.c @@ -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)