Fix issue where log file would close when logging was enabled.

Thanks @marcelv-3
https://github.com/erichelgeson/BlueSCSI/discussions/103#discussioncomment-2779471
This commit is contained in:
Eric Helgeson 2022-05-20 19:33:31 -05:00
parent 94a22bb45e
commit 73fc0ed2bf

View File

@ -734,7 +734,9 @@ void finalizeFileLog() {
} }
LOG_FILE.println("Finished initialization of SCSI Devices - Entering main loop."); LOG_FILE.println("Finished initialization of SCSI Devices - Entering main loop.");
LOG_FILE.sync(); LOG_FILE.sync();
#if DEBUG < 2
LOG_FILE.close(); LOG_FILE.close();
#endif
} }
/* /*