SD card warning modified (fits now in 9X LCD)

Missing #ifdef for TELEMETRY flavours
This commit is contained in:
Bertrand Songis
2016-08-22 19:03:42 +02:00
parent 81c16212e0
commit c16ad94e3a
14 changed files with 23 additions and 34 deletions
+7 -7
View File
@@ -1097,12 +1097,12 @@ void checkSDVersion()
f_read(&versionFile, &version, sizeof(REQUIRED_SDCARD_VERSION), &read);
if (strncmp(version, REQUIRED_SDCARD_VERSION, sizeof(REQUIRED_SDCARD_VERSION)-1) != 0) {
TRACE("sdCheckVersion FAILED: version are not the same");
ALERT(STR_SDCARDVERSIONWARN, STR_WRONG_SDCARDVERSION, AU_ERROR);
ALERT(STR_SDCARD_ERROR, STR_WRONG_SDCARDVERSION, AU_ERROR);
}
}
else {
TRACE("sdCheckVersion FAILED: opentx.sdcard.version cannot be opened");
ALERT(STR_SDCARDVERSIONWARN, STR_WRONG_SDCARDVERSION, AU_ERROR);
ALERT(STR_SDCARD_ERROR, STR_WRONG_SDCARDVERSION, AU_ERROR);
}
f_close(&versionFile);
}
@@ -2677,23 +2677,23 @@ int main()
DSM2_Init();
#endif
#ifdef JETI
#if defined(TELEMETRY_JETI)
JETI_Init();
#endif
#ifdef ARDUPILOT
#if defined(TELEMETRY_ARDUPILOT)
ARDUPILOT_Init();
#endif
#ifdef NMEA
#if defined(TELEMETRY_NMEA)
NMEA_Init();
#endif
#ifdef MAVLINK
#if defined(TELEMETRY_MAVLINK)
MAVLINK_Init();
#endif
#ifdef MENU_ROTARY_SW
#if defined(MENU_ROTARY_SW)
init_rotary_sw();
#endif