[Taranis] Debug log appended correctly...
This commit is contained in:
@@ -970,8 +970,11 @@ void sdInit()
|
|||||||
{
|
{
|
||||||
if (f_mount(0, &g_FATFS_Obj) == FR_OK) {
|
if (f_mount(0, &g_FATFS_Obj) == FR_OK) {
|
||||||
refreshSystemAudioFiles();
|
refreshSystemAudioFiles();
|
||||||
|
|
||||||
#if defined(DEBUG)
|
#if defined(DEBUG)
|
||||||
f_open(&g_telemetryFile, LOGS_PATH "/sport.log", FA_OPEN_ALWAYS | FA_WRITE);
|
f_open(&g_telemetryFile, LOGS_PATH "/sport.log", FA_OPEN_ALWAYS | FA_WRITE);
|
||||||
|
if (f_size(&g_telemetryFile) > 0)
|
||||||
|
f_lseek(&g_telemetryFile, f_size(&g_telemetryFile)); // append
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user