fix(ghost): use a usable baudrate for the telemetry mirror (#7610)

This commit is contained in:
jb.justcode
2026-08-16 13:23:48 +10:00
committed by GitHub
parent 6d793f9252
commit 245da4599a
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -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;
+1
View File
@@ -119,6 +119,7 @@ enum GhostTelemetryBaudrates
};
#endif
#define GHOST_BAUDRATE 400000
#define GHOST_TELEM_MIRROR_BAUDRATE 115200
#define GHOST_PERIOD 4000 /* us */
enum GhostLineFlags