From 5879ca2fb627557f15ecfdfe30cb4892e6177842 Mon Sep 17 00:00:00 2001 From: Kjell Kernen Date: Thu, 26 Jun 2014 12:56:16 +0200 Subject: [PATCH] Moved initialization of eeprom interfaces to before the first lines of active code to avoid future problems. --- companion/src/companion.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/companion/src/companion.cpp b/companion/src/companion.cpp index d3e7a56cf..50c5c311e 100644 --- a/companion/src/companion.cpp +++ b/companion/src/companion.cpp @@ -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();