Now options are stored in EEPROM

This commit is contained in:
bsongis
2012-05-06 14:47:18 +00:00
parent 2c8c1f856b
commit 801c0c2a52
5 changed files with 71 additions and 3 deletions
+3
View File
@@ -135,6 +135,7 @@ void generalDefault()
memset(&g_eeGeneral, 0, sizeof(g_eeGeneral));
g_eeGeneral.lightSw = SWITCH_ON;
g_eeGeneral.myVers = EEPROM_VER;
g_eeGeneral.fwOptions = FW_OPTIONS;
g_eeGeneral.contrast = 25;
g_eeGeneral.vBatWarn = 90;
for (int i = 0; i < 7; ++i) {
@@ -2570,8 +2571,10 @@ int main(void)
#endif
{
#ifdef SPLASH
#ifdef DSM2
// TODO rather use another Model Parameter
if (g_model.protocol != PROTO_DSM2)
#endif
doSplash();
#endif