feat(gx12): add Ground Station AUX1 mode
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
|
||||
#if !defined(BOOT)
|
||||
#include "edgetx.h"
|
||||
#include "groundstation.h"
|
||||
#include "lua/lua_api.h"
|
||||
#else
|
||||
#include "dataconstants.h"
|
||||
@@ -257,6 +258,10 @@ static void serialSetCallBacks(int mode, void* ctx, const etx_serial_port_t* por
|
||||
break;
|
||||
#endif
|
||||
|
||||
case UART_MODE_GROUND_STATION:
|
||||
groundstationSetSerialDriver(ctx, drv);
|
||||
break;
|
||||
|
||||
#if defined(CONFIGURABLE_MODULE_PORT) and !defined(BOOT)
|
||||
case UART_MODE_EXT_MODULE:
|
||||
if (port && !ctx) { // de-init
|
||||
@@ -354,6 +359,11 @@ static void serialSetupPort(int mode, etx_serial_init& params)
|
||||
break;
|
||||
#endif
|
||||
|
||||
case UART_MODE_GROUND_STATION:
|
||||
params.baudrate = 115200;
|
||||
params.direction = ETX_Dir_TX_RX;
|
||||
break;
|
||||
|
||||
#endif // BOOT
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user