Allow my X9e to boot ! (#4211)

Thanks
This commit is contained in:
3djc
2017-01-09 18:16:16 +01:00
committed by Bertrand Songis
parent 707b000111
commit dc51a95029
+2 -3
View File
@@ -115,12 +115,14 @@ tmr10ms_t lastLogTime = 0;
void logsClose() void logsClose()
{ {
if (sdMounted()) {
if (f_close(&g_oLogFile) != FR_OK) { if (f_close(&g_oLogFile) != FR_OK) {
// close failed, forget file // close failed, forget file
g_oLogFile.obj.fs = 0; g_oLogFile.obj.fs = 0;
} }
lastLogTime = 0; lastLogTime = 0;
} }
}
#if !defined(CPUARM) #if !defined(CPUARM)
getvalue_t getConvertedTelemetryValue(getvalue_t val, uint8_t unit) getvalue_t getConvertedTelemetryValue(getvalue_t val, uint8_t unit)
@@ -391,6 +393,3 @@ void logsWrite()
} }
} }
} }