Allow sdcard version change from cmake (#3816)

* Allow sdcard version change from cmake

* Make it sdcard version check ARM only

* Move to common ARM
This commit is contained in:
3djc
2016-09-17 08:53:01 +02:00
committed by Bertrand Songis
parent 6c38dcc885
commit 7bfb213687
7 changed files with 21 additions and 18 deletions
+8 -8
View File
@@ -980,7 +980,7 @@ void doSplash()
#define doSplash()
#endif
#if defined(SDCARD)
#if defined(SDCARD) && defined(CPUARM)
void checkSDVersion()
{
if (sdMounted()) {
@@ -1038,7 +1038,7 @@ void checkAll()
checkFailsafe();
#endif
#if defined(SDCARD)
#if defined(SDCARD) && defined(CPUARM)
checkSDVersion();
#endif
@@ -1877,7 +1877,7 @@ void opentxClose(uint8_t shutdown)
hapticOff();
#endif
}
#if defined(SDCARD)
logsClose();
#endif
@@ -1919,21 +1919,21 @@ void opentxClose(uint8_t shutdown)
void opentxResume()
{
TRACE("opentxResume");
menuHandlers[0] = menuMainView;
sdMount();
storageReadAll();
#if defined(PCBHORUS)
loadTheme();
loadFontCache();
#endif
opentxStart(false);
#if defined(CPUARM)
#if defined(CPUARM)
referenceSystemAudioFiles();
#endif