[Horus] Refactoring for the new fatal errors

This commit is contained in:
Bertrand Songis
2016-08-31 01:04:11 +02:00
parent 855814655e
commit 82b9ecc155
25 changed files with 165 additions and 75 deletions
+12
View File
@@ -2706,6 +2706,18 @@ int main()
init_rotary_sw();
#endif
#if defined(PCBHORUS)
if (!IS_FIRMWARE_COMPATIBLE_WITH_BOARD()) {
runFatalErrorScreen(STR_WRONG_PCBREV);
}
#endif
#if !defined(EEPROM)
if (!SD_CARD_PRESENT()) {
runFatalErrorScreen(STR_NO_SDCARD);
}
#endif
#if defined(CPUARM)
tasksStart();
#else