use test files from radio & X7 tests

... and removed warnings dialog temporarily.
This commit is contained in:
Raphael Coeffic
2019-08-23 08:32:43 +02:00
parent 84aeed8914
commit 99507f71e1
10 changed files with 81 additions and 78 deletions
+2 -1
View File
@@ -43,6 +43,7 @@ bool BinEepromFormat::load(RadioData & radioData)
return false;
}
//TODO: show warnings if any
return extract(radioData, eeprom);
}
@@ -94,7 +95,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)) {
EEPROMInterface::showEepromWarnings(NULL, CPN_STR_TTL_WARNING, errors.to_ulong());
setWarning(EEPROMInterface::getEepromWarnings(errors.to_ulong()));
}
board = eepromInterface->getBoard();
return true;