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();
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue