AP_Networking: correct compilation when network port registering disabled

ports doesn't exist if this condition is false
This commit is contained in:
Peter Barker 2024-08-12 19:09:26 +10:00 committed by Andrew Tridgell
parent 1dc87a0903
commit f32f3beceb
1 changed files with 2 additions and 0 deletions

View File

@ -198,8 +198,10 @@ void AP_Networking::init()
start_tests(); start_tests();
#endif #endif
#if AP_NETWORKING_REGISTER_PORT_ENABLED
// init network mapped serialmanager ports // init network mapped serialmanager ports
ports_init(); ports_init();
#endif
} }
/* /*