diff --git a/src/BlueSCSI.cpp b/src/BlueSCSI.cpp index 2a082fd..4eab544 100644 --- a/src/BlueSCSI.cpp +++ b/src/BlueSCSI.cpp @@ -515,7 +515,7 @@ void setup() * Setup initialization logfile */ void initFileLog() { - LOG_FILE = SD.open(LOG_FILENAME, O_WRONLY | O_CREAT); + LOG_FILE = SD.open(LOG_FILENAME, O_WRONLY | O_CREAT | O_TRUNC); LOG_FILE.println("BlueSCSI <-> SD - https://github.com/erichelgeson/BlueSCSI"); LOG_FILE.print("VERSION: "); LOG_FILE.println(VERSION);