Wrong display on SIMU when creating a model
This commit is contained in:
+1
-2
@@ -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));
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user