3djc/horus checklist improvement (#4195)

* Add the possibility of modelfilename.txt to Horus checklist

* Typo

* Cosmetics
This commit is contained in:
3djc
2017-01-08 19:00:45 +01:00
committed by Bertrand Songis
parent e7f258ee45
commit 1642732e8f
2 changed files with 19 additions and 4 deletions
+15 -3
View File
@@ -527,7 +527,7 @@ bool isTelemetryProtocolAvailable(int protocol)
return false;
}
#endif
if (protocol== PROTOCOL_PULSES_CROSSFIRE) {
return false;
}
@@ -537,7 +537,7 @@ bool isTelemetryProtocolAvailable(int protocol)
return false;
}
#endif
#if defined(PCBHORUS)
if (protocol == PROTOCOL_FRSKY_D_SECONDARY) {
return false;
@@ -568,7 +568,19 @@ bool modelHasNotes()
char filename[sizeof(MODELS_PATH)+1+sizeof(g_model.header.name)+sizeof(TEXT_EXT)] = MODELS_PATH "/";
char *buf = strcat_currentmodelname(&filename[sizeof(MODELS_PATH)]);
strcpy(buf, TEXT_EXT);
return isFileAvailable(filename);
if (isFileAvailable(filename)) {
return true;
}
#if !defined(EEPROM)
buf = strAppendFilename(&filename[sizeof(MODELS_PATH)], g_eeGeneral.currModelFilename, LEN_MODEL_FILENAME);
strcpy(buf, TEXT_EXT);
if (isFileAvailable(filename)) {
return true;
}
#endif
return false;
}
int getFirstAvailable(int min, int max, IsValueAvailable isValueAvailable)