From cd757ced2f58fa5ccd7b7da311d556e660a33af2 Mon Sep 17 00:00:00 2001 From: elecpower Date: Sat, 11 Dec 2021 22:37:46 +1100 Subject: [PATCH] No need to calculate file and eeprom sizes --- companion/src/modelslist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/companion/src/modelslist.cpp b/companion/src/modelslist.cpp index 864c10028..b11b15723 100644 --- a/companion/src/modelslist.cpp +++ b/companion/src/modelslist.cpp @@ -651,7 +651,7 @@ void TreeModel::refresh() EEPROMInterface * eepromInterface = getCurrentEEpromInterface(); Board::Type board = eepromInterface->getBoard(); 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) { 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; if (protocol== PULSES_PXX_XJT_D8) return true; - + for (auto const& model: radioData->models) { if (!model.isEmpty()) { const ModuleData& moduleData = model.moduleData[module];