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
+7 -8
View File
@@ -2,7 +2,7 @@
* Copyright (C) OpenTX
*
* Based on code named
* th9x - http://code.google.com/p/th9x
* th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x
*
@@ -115,11 +115,13 @@ tmr10ms_t lastLogTime = 0;
void logsClose()
{
if (f_close(&g_oLogFile) != FR_OK) {
// close failed, forget file
g_oLogFile.obj.fs = 0;
if (sdMounted()) {
if (f_close(&g_oLogFile) != FR_OK) {
// close failed, forget file
g_oLogFile.obj.fs = 0;
}
lastLogTime = 0;
}
lastLogTime = 0;
}
#if !defined(CPUARM)
@@ -391,6 +393,3 @@ void logsWrite()
}
}
}