From a1799afa28491bb66be35289655103cfe0aeb2d7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Nov 2023 11:05:00 +1100 Subject: [PATCH] AP_SerialManager: enable port registration for dronecan --- libraries/AP_SerialManager/AP_SerialManager_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_SerialManager/AP_SerialManager_config.h b/libraries/AP_SerialManager/AP_SerialManager_config.h index a5a962b40c091..7dbf0c16a8a0c 100644 --- a/libraries/AP_SerialManager/AP_SerialManager_config.h +++ b/libraries/AP_SerialManager/AP_SerialManager_config.h @@ -53,7 +53,7 @@ #ifndef AP_SERIALMANAGER_REGISTER_ENABLED -#define AP_SERIALMANAGER_REGISTER_ENABLED AP_NETWORKING_ENABLED +#define AP_SERIALMANAGER_REGISTER_ENABLED BOARD_FLASH_SIZE > 1024 && (AP_NETWORKING_ENABLED || HAL_ENABLE_DRONECAN_DRIVERS) #endif // serial ports registered by AP_Networking will use IDs starting at 21 for the first port