disable strange try-to-detect-bad-config-file if-statement

Origin commit data
------------------
Branch: ni/coolstream
Commit: 56b99e0b47
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-02-15 (Wed, 15 Feb 2017)

Origin message was:
------------------
- disable strange try-to-detect-bad-config-file if-statement

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-02-15 08:48:38 +01:00
parent 78a5a4a658
commit 1fd4237382

View File

@@ -320,6 +320,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
//file existiert nicht
erg = 1;
} else {
#if 0
/* try to detect bad / broken config file */
if (!configfile.getInt32("screen_EndX_crt_0", 0) ||
!configfile.getInt32("screen_EndY_crt_0", 0) ||
@@ -327,10 +328,11 @@ int CNeutrinoApp::loadSetup(const char * fname)
!configfile.getInt32("screen_EndY_lcd_0", 0)) {
printf("[neutrino] config file %s is broken, using defaults\n", fname);
configfile.clear();
} else {
} else
#endif
migrateConfig(fname);
}
}
parentallocked = !access(NEUTRINO_PARENTALLOCKED_FILE, R_OK);
//theme/color options