GCS_MAVLink: raise number of MAVLink ports

with CAN serial ports and network serial ports sometimes need more
This commit is contained in:
Andrew Tridgell 2024-10-08 12:54:03 +11:00
parent 996b36531b
commit b34417f683

View File

@ -15,9 +15,9 @@
#define MAVLINK_START_UART_SEND(chan, size) comm_send_lock(chan, size) #define MAVLINK_START_UART_SEND(chan, size) comm_send_lock(chan, size)
#define MAVLINK_END_UART_SEND(chan, size) comm_send_unlock(chan) #define MAVLINK_END_UART_SEND(chan, size) comm_send_unlock(chan)
#if AP_NETWORKING_ENABLED #if BOARD_FLASH_SIZE > 1024
// allow 7 telemetry ports with networking // allow 8 telemetry ports, allowing for extra networking or CAN ports
#define MAVLINK_COMM_NUM_BUFFERS 7 #define MAVLINK_COMM_NUM_BUFFERS 8
#else #else
// allow five telemetry ports // allow five telemetry ports
#define MAVLINK_COMM_NUM_BUFFERS 5 #define MAVLINK_COMM_NUM_BUFFERS 5