fix: Serial/telemetry max baud rate wasn't being read/written correctly (#1570)

This commit is contained in:
Neil Horne
2022-03-08 11:36:29 +10:00
committed by GitHub
parent 3efbd6f886
commit f764dfcc2e
6 changed files with 53 additions and 12 deletions
+7
View File
@@ -493,6 +493,13 @@ int Boards::getCapability(Board::Type board, Board::Capability capability)
case HasInternalModuleSupport:
return (IS_STM32(board) && !IS_TARANIS_X9(board));
case SportMaxBaudRate:
if (IS_FAMILY_T16(board) || IS_FLYSKY_NV14(board) || IS_TARANIS_X7_ACCESS(board) ||
(IS_TARANIS(board) && !IS_TARANIS_XLITE(board) && !IS_TARANIS_X7(board) && !IS_TARANIS_X9LITE(board)))
return 400000; // 400K and higher
else
return 250000; // less than 400K
default:
return 0;
}