Skip to content

Commit

Permalink
fix: Don't spam simulator log with file close msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
mha1 authored and pfeerick committed Jul 30, 2023
1 parent 4accf60 commit cdc65fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/logs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const char * logsOpen()

void logsClose()
{
if (sdMounted()) {
if (g_oLogFile.obj.fs && sdMounted()) {
if (f_close(&g_oLogFile) != FR_OK) {
// close failed, forget file
g_oLogFile.obj.fs = 0;
Expand Down

0 comments on commit cdc65fe

Please sign in to comment.