5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-09 01:18:29 -04:00

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

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
} }
/* /*