Fixes #2007: Handle full SD card in openLogs(). SD card info menu implemented for Taranis, added display of free sectors. Disk IO simulation (all ported from master)

This commit is contained in:
Damjan Adamic
2015-02-20 21:59:24 +01:00
parent 9e65cd386b
commit 9d777f799d
28 changed files with 1048 additions and 680 deletions
+11
View File
@@ -1031,6 +1031,9 @@ void sdInit(void)
}
if (f_mount(&g_FATFS_Obj, "", 1) == FR_OK) {
// call sdGetFreeSectors() now because f_getfree() takes a long time first time it's called
sdGetFreeSectors();
referenceSystemAudioFiles();
#if defined(SPORT_FILE_LOG)
@@ -1059,4 +1062,12 @@ uint32_t sdMounted()
return g_FATFS_Obj.fs_type != 0;
}
uint32_t sdIsHC()
{
return (CardType & CT_BLOCK);
}
uint32_t sdGetSpeed()
{
return 330000;
}