mirror of https://github.com/ArduPilot/ardupilot
AP_Networking: correct compilation when network port registering disabled
ports doesn't exist if this condition is false
This commit is contained in:
parent
1dc87a0903
commit
f32f3beceb
|
@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue