No need to calculate file and eeprom sizes

This commit is contained in:
elecpower
2021-12-31 10:53:10 +01:00
committed by Raphael Coeffic
parent 23c84633da
commit cd757ced2f
+2 -2
View File
@@ -651,7 +651,7 @@ void TreeModel::refresh()
EEPROMInterface * eepromInterface = getCurrentEEpromInterface(); EEPROMInterface * eepromInterface = getCurrentEEpromInterface();
Board::Type board = eepromInterface->getBoard(); Board::Type board = eepromInterface->getBoard();
TreeItem * defaultCategoryItem = NULL; TreeItem * defaultCategoryItem = NULL;
bool hasEepromSizeData = (IS_FAMILY_HORUS_OR_T16(board) ? false : true); bool hasEepromSizeData = false; // not necessary with move to YAML storage for all boards TODO: remove unused code
if (hasEepromSizeData) { if (hasEepromSizeData) {
availableEEpromSize = Boards::getEEpromSize(board) - 64; // let's consider fat availableEEpromSize = Boards::getEEpromSize(board) - 64; // let's consider fat
@@ -753,7 +753,7 @@ bool TreeModel::isModelIdUnique(unsigned modelIdx, unsigned module, unsigned pro
int cnt = 0; int cnt = 0;
if (protocol== PULSES_PXX_XJT_D8) if (protocol== PULSES_PXX_XJT_D8)
return true; return true;
for (auto const& model: radioData->models) { for (auto const& model: radioData->models) {
if (!model.isEmpty()) { if (!model.isEmpty()) {
const ModuleData& moduleData = model.moduleData[module]; const ModuleData& moduleData = model.moduleData[module];