From f32f3beceb660cca651e1c1ce1756dcd9911ead6 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 12 Aug 2024 19:09:26 +1000 Subject: [PATCH] AP_Networking: correct compilation when network port registering disabled ports doesn't exist if this condition is false --- libraries/AP_Networking/AP_Networking.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Networking/AP_Networking.cpp b/libraries/AP_Networking/AP_Networking.cpp index 1d2edb1c98..c00ef4a713 100644 --- a/libraries/AP_Networking/AP_Networking.cpp +++ b/libraries/AP_Networking/AP_Networking.cpp @@ -198,8 +198,10 @@ void AP_Networking::init() start_tests(); #endif +#if AP_NETWORKING_REGISTER_PORT_ENABLED // init network mapped serialmanager ports ports_init(); +#endif } /*