chore(cpn): move capabilities from firmware to boards, remove unused (#7070)

This commit is contained in:
Neil Horne
2026-02-06 14:34:41 +10:00
committed by GitHub
parent de5f4eb5dc
commit e4fc09bfea
35 changed files with 2135 additions and 2633 deletions
+2 -1
View File
@@ -426,7 +426,8 @@ void GeneralSettings::convert(RadioDataConversionState & cstate)
}
if (IS_TARANIS(cstate.toType)) {
contrast = qBound<int>(getCurrentFirmware()->getCapability(MinContrast), contrast, getCurrentFirmware()->getCapability(MaxContrast));
contrast = qBound<int>(Boards::getCapability(cstate.toType, Board::MinContrast),
contrast, Boards::getCapability(cstate.toType, Board::MaxContrast));
}
// TODO: Would be nice at this point to have GUI pause and ask the user to set up any custom hardware they have on the destination radio.