From 30856034897426e13b711c8738d4f2c94afdaa5d Mon Sep 17 00:00:00 2001 From: 3djc Date: Mon, 11 Mar 2024 12:30:10 +0100 Subject: [PATCH] chore: auto select radio fastest supported baudrate for elrs (#4698) --- radio/src/opentx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 2beb5d5987d..938cd9d2f7c 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -292,8 +292,8 @@ void generalDefault() #if defined(DEFAULT_INTERNAL_MODULE) g_eeGeneral.internalModule = DEFAULT_INTERNAL_MODULE; - if (g_eeGeneral.internalModule == MODULE_TYPE_CROSSFIRE) - g_eeGeneral.internalModuleBaudrate = min(1, (int)CROSSFIRE_MAX_INTERNAL_BAUDRATE); // 921k if possible + if (DEFAULT_INTERNAL_MODULE == MODULE_TYPE_CROSSFIRE) + g_eeGeneral.internalModuleBaudrate = CROSSFIRE_MAX_INTERNAL_BAUDRATE; #endif adcCalibDefaults();