Truncate log file on open

This commit is contained in:
Eric Helgeson 2021-07-08 10:03:07 -05:00
parent 698f73c88b
commit 09a79fccae
1 changed files with 1 additions and 1 deletions

View File

@ -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);