Moved initialization of eeprom interfaces to before the first lines of active code to avoid future problems.

This commit is contained in:
Kjell Kernen
2014-06-26 12:56:16 +02:00
parent 77a7f13507
commit 5879ca2fb6
+2 -3
View File
@@ -96,7 +96,8 @@ int main(int argc, char *argv[])
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
registerOpenTxFirmwares();
RegisterEepromInterfaces();
registerOpenTxFirmwares();
if (g.profile[g.id()].fwType().isEmpty()){
g.profile[g.id()].fwType(default_firmware_variant->getId());
@@ -112,8 +113,6 @@ int main(int argc, char *argv[])
QPixmap pixmap = QPixmap(splashScreen);
QSplashScreen *splash = new QSplashScreen(pixmap);
RegisterEepromInterfaces();
current_firmware_variant = GetFirmware(g.profile[g.id()].fwType());
MainWindow *mainWin = new MainWindow();