mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
AP_SerialManager: fixed GPS in AP_Periph
we need to have at least 4 SERIALn_* parameters to support GPS on AP_Periph due to the odd ordering of hal.uartB as SERIAL3
This commit is contained in:
parent
4c9117c61c
commit
aad4598644
@ -26,8 +26,14 @@
|
|||||||
#include <AP_Param/AP_Param.h>
|
#include <AP_Param/AP_Param.h>
|
||||||
|
|
||||||
#ifdef HAL_UART_NUM_SERIAL_PORTS
|
#ifdef HAL_UART_NUM_SERIAL_PORTS
|
||||||
|
#if HAL_UART_NUM_SERIAL_PORTS >= 4
|
||||||
#define SERIALMANAGER_NUM_PORTS HAL_UART_NUM_SERIAL_PORTS
|
#define SERIALMANAGER_NUM_PORTS HAL_UART_NUM_SERIAL_PORTS
|
||||||
#else
|
#else
|
||||||
|
// we need a minimum of 4 to allow for a GPS due to the odd ordering
|
||||||
|
// of hal.uartB as SERIAL3
|
||||||
|
#define SERIALMANAGER_NUM_PORTS 4
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
// assume max 8 ports
|
// assume max 8 ports
|
||||||
#define SERIALMANAGER_NUM_PORTS 8
|
#define SERIALMANAGER_NUM_PORTS 8
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user