feat: Set better internal crossfire module default baudrate (#4523)
This commit is contained in:
@@ -57,6 +57,10 @@
|
|||||||
#include "gui/colorlcd/LvglWrapper.h"
|
#include "gui/colorlcd/LvglWrapper.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CROSSFIRE)
|
||||||
|
#include "telemetry/crossfire.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(SIMU)
|
#if !defined(SIMU)
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -288,6 +292,8 @@ void generalDefault()
|
|||||||
|
|
||||||
#if defined(DEFAULT_INTERNAL_MODULE)
|
#if defined(DEFAULT_INTERNAL_MODULE)
|
||||||
g_eeGeneral.internalModule = 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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
adcCalibDefaults();
|
adcCalibDefaults();
|
||||||
|
|||||||
Reference in New Issue
Block a user