fix(ghost): use a usable baudrate for the telemetry mirror (#7610)
This commit is contained in:
@@ -46,6 +46,10 @@
|
||||
#include "telemetry/crossfire.h"
|
||||
#endif
|
||||
|
||||
#if defined(GHOST)
|
||||
#include "telemetry/ghost.h"
|
||||
#endif
|
||||
|
||||
#if defined(DEBUG_SEGGER_RTT)
|
||||
#include "thirdparty/Segger/SEGGER/SEGGER_RTT.h"
|
||||
#endif
|
||||
@@ -300,6 +304,12 @@ static void serialSetupPort(int mode, etx_serial_init& params)
|
||||
params.baudrate = CROSSFIRE_TELEM_MIRROR_BAUDRATE;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
#if defined(GHOST)
|
||||
if (isModuleGhost(EXTERNAL_MODULE) || isModuleGhost(INTERNAL_MODULE)) {
|
||||
params.baudrate = GHOST_TELEM_MIRROR_BAUDRATE;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
params.baudrate = FRSKY_TELEM_MIRROR_BAUDRATE;
|
||||
break;
|
||||
|
||||
@@ -119,6 +119,7 @@ enum GhostTelemetryBaudrates
|
||||
};
|
||||
#endif
|
||||
#define GHOST_BAUDRATE 400000
|
||||
#define GHOST_TELEM_MIRROR_BAUDRATE 115200
|
||||
#define GHOST_PERIOD 4000 /* us */
|
||||
|
||||
enum GhostLineFlags
|
||||
|
||||
Reference in New Issue
Block a user