1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

[Horus] Model name greater than Model99.bin allowed

This commit is contained in:
Bertrand Songis 2016-08-27 21:35:36 +02:00
parent 3e960be9ce
commit b105214e32
4 changed files with 21 additions and 8 deletions

View file

@ -218,7 +218,7 @@ const char * createModel()
memset(filename, 0, sizeof(filename));
strcpy(filename, "model.bin");
int index = findNextFileIndex(filename, MODELS_PATH);
int index = findNextFileIndex(filename, LEN_MODEL_FILENAME, MODELS_PATH);
if (index > 0) {
modelDefault(index);
memcpy(g_eeGeneral.currModelFilename, filename, sizeof(g_eeGeneral.currModelFilename));