Fix eeprom load multiples warnings

This commit is contained in:
3djc
2019-05-17 14:47:29 +02:00
parent 0d9ea8a59a
commit 868295d87a
2 changed files with 1 additions and 2 deletions
@@ -232,7 +232,6 @@ unsigned long OpenTxEepromInterface::load(RadioData &radioData, const uint8_t *
if (version_error == OLD_VERSION) {
errors.set(version_error);
errors.set(HAS_WARNINGS);
showEepromWarnings(NULL, CPN_STR_TTL_WARNING, errors.to_ulong());
}
else if (version_error == NOT_OPENTX) {
dbg << " not open9x";
+1 -1
View File
@@ -94,7 +94,7 @@ bool BinEepromFormat::extract(RadioData & radioData, const QByteArray & eeprom)
std::bitset<NUM_ERRORS> result((unsigned long long)eepromInterface->load(radioData, (uint8_t *)eeprom.data(), eeprom.size()));
if (result.test(ALL_OK)) {
if (errors.test(HAS_WARNINGS)) {
// TODO ShowEepromWarnings(this, CPN_STR_TTL_WARNING, errors.to_ulong());
EEPROMInterface::showEepromWarnings(NULL, CPN_STR_TTL_WARNING, errors.to_ulong());
}
board = eepromInterface->getBoard();
return true;