Wrong display on SIMU when creating a model

This commit is contained in:
bsongis
2012-05-23 14:50:28 +00:00
parent b5e76c186c
commit 090a74369a
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -851,8 +851,7 @@ bool eeModelExists(uint8_t id)
void eeLoadModel(uint8_t id) void eeLoadModel(uint8_t id)
{ {
if(id<MAX_MODELS) if (id<MAX_MODELS) {
{
theFile.openRlc(FILE_MODEL(id)); theFile.openRlc(FILE_MODEL(id));
uint16_t sz = theFile.readRlc((uint8_t*)&g_model, sizeof(g_model)); uint16_t sz = theFile.readRlc((uint8_t*)&g_model, sizeof(g_model));
-1
View File
@@ -337,7 +337,6 @@ void menuProcModelSelect(uint8_t event)
g_eeGeneral.currModel = sub; g_eeGeneral.currModel = sub;
STORE_GENERALVARS; STORE_GENERALVARS;
eeLoadModel(sub); eeLoadModel(sub);
return;
} }
#endif #endif
} }