fix(f4): limit CRSF external module speed to 3.75Mbps (#6923)

Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
3djc
2026-01-28 16:06:06 +10:00
committed by GitHub
co-authored by elecpower
parent 0087e258f9
commit 6b1cd88eff
9 changed files with 86 additions and 48 deletions
+5 -1
View File
@@ -641,12 +641,16 @@ AbstractStaticItemModel * ModuleData::protocolItemModel(GeneralSettings & settin
return mdl;
}
AbstractStaticItemModel * ModuleData::telemetryBaudrateItemModel(unsigned int protocol)
AbstractStaticItemModel * ModuleData::telemetryBaudrateItemModel(unsigned int protocol, int moduleIdx, int board)
{
AbstractStaticItemModel * mdl = new AbstractStaticItemModel();
mdl->setName("moduledata.baudrate");
for (int i = 0; i < moduleBaudratesList.size(); i++) {
// CRSF limit external module to 3.75M for older boards
if (protocol == PULSES_CROSSFIRE && moduleIdx == 1 &&
IS_STM32F2F4((Board::Type)board) && i > 4) break;
if (protocol == PULSES_GHOST && i >= 2) break;
mdl->appendToItemList(moduleBaudratesList.at(i), i);
}