Companion : display warning on eeprom upgrade (#4724)

* Display warning on eeprom upgrade

* Use existing function
This commit is contained in:
3djc
2017-04-01 08:10:46 +02:00
committed by Bertrand Songis
parent fa275793ad
commit b22e45cf18
@@ -254,6 +254,7 @@ unsigned long OpenTxEepromInterface::load(RadioData &radioData, const uint8_t *
if (version_error == OLD_VERSION) { if (version_error == OLD_VERSION) {
errors.set(version_error); errors.set(version_error);
errors.set(HAS_WARNINGS); errors.set(HAS_WARNINGS);
ShowEepromWarnings(NULL, QObject::tr("Warning"), errors.to_ulong());
} }
else if (version_error == NOT_OPENTX) { else if (version_error == NOT_OPENTX) {
std::cout << " not open9x\n"; std::cout << " not open9x\n";
@@ -281,7 +282,6 @@ unsigned long OpenTxEepromInterface::load(RadioData &radioData, const uint8_t *
return errors.to_ulong(); return errors.to_ulong();
} }
} }
std::cout << " ok\n"; std::cout << " ok\n";
errors.set(ALL_OK); errors.set(ALL_OK);
return errors.to_ulong(); return errors.to_ulong();