From b34417f683c73bf57c4d79f9d07cdff66d22fa89 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 8 Oct 2024 12:54:03 +1100 Subject: [PATCH] GCS_MAVLink: raise number of MAVLink ports with CAN serial ports and network serial ports sometimes need more --- libraries/GCS_MAVLink/GCS_MAVLink.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/GCS_MAVLink/GCS_MAVLink.h b/libraries/GCS_MAVLink/GCS_MAVLink.h index 36e0cd3fb0..b59ba9d93c 100644 --- a/libraries/GCS_MAVLink/GCS_MAVLink.h +++ b/libraries/GCS_MAVLink/GCS_MAVLink.h @@ -15,9 +15,9 @@ #define MAVLINK_START_UART_SEND(chan, size) comm_send_lock(chan, size) #define MAVLINK_END_UART_SEND(chan, size) comm_send_unlock(chan) -#if AP_NETWORKING_ENABLED -// allow 7 telemetry ports with networking -#define MAVLINK_COMM_NUM_BUFFERS 7 +#if BOARD_FLASH_SIZE > 1024 +// allow 8 telemetry ports, allowing for extra networking or CAN ports +#define MAVLINK_COMM_NUM_BUFFERS 8 #else // allow five telemetry ports #define MAVLINK_COMM_NUM_BUFFERS 5