fix: Missing configurable port code, R9M Access, support FRM303 via mod (#3442)
* Fix configurable external module port * Added FRM303 support for TX16S via AUX1 mod, i.e. direct connect AUX1 TX/RX to PPM/Heartbeat pins. --------- Co-authored-by: raphaelcoeffic <raphael.coeffic@frafos.com>
This commit is contained in:
co-authored by
raphaelcoeffic
parent
e03add0b86
commit
125fd2ba28
@@ -992,10 +992,18 @@ static void* initModule(uint8_t module)
|
||||
module == INTERNAL_MODULE ? ETX_Pol_Normal : ETX_Pol_Inverted;
|
||||
mod_st = modulePortInitSerial(module, ETX_MOD_PORT_UART, ¶ms);
|
||||
|
||||
if (module == EXTERNAL_MODULE && !mod_st) {
|
||||
#if defined(CONFIGURABLE_MODULE_PORT)
|
||||
if (!mod_st && module == EXTERNAL_MODULE) {
|
||||
// Try Connect using aux serial mod
|
||||
params.polarity = ETX_Pol_Normal;
|
||||
mod_st = modulePortInitSerial(module, ETX_MOD_PORT_UART, ¶ms);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!mod_st && module == EXTERNAL_MODULE) {
|
||||
// soft-serial fallback
|
||||
params.baudrate = AFHDS3_SOFTSERIAL_BAUDRATE;
|
||||
params.direction = ETX_Dir_RX;
|
||||
params.direction = ETX_Dir_TX;
|
||||
period = AFHDS3_SOFTSERIAL_COMMAND_TIMEOUT * 1000 /* us */;
|
||||
mod_st = modulePortInitSerial(module, ETX_MOD_PORT_SOFT_INV, ¶ms);
|
||||
// TODO: telemetry RX ???
|
||||
|
||||
Reference in New Issue
Block a user