AP_Vehicle: init networking after serial manager
init before serial manager led to not seeing any error messages if net init failed
This commit is contained in:
parent
55b5e1cff1
commit
c61ee15c1f
@ -313,16 +313,16 @@ void AP_Vehicle::setup()
|
||||
gcs().init();
|
||||
#endif
|
||||
|
||||
#if AP_NETWORKING_ENABLED
|
||||
networking.init();
|
||||
#endif
|
||||
|
||||
// initialise serial ports
|
||||
serial_manager.init();
|
||||
#if HAL_GCS_ENABLED
|
||||
gcs().setup_console();
|
||||
#endif
|
||||
|
||||
#if AP_NETWORKING_ENABLED
|
||||
networking.init();
|
||||
#endif
|
||||
|
||||
// Register scheduler_delay_cb, which will run anytime you have
|
||||
// more than 5ms remaining in your call to hal.scheduler->delay
|
||||
hal.scheduler->register_delay_callback(scheduler_delay_callback, 5);
|
||||
|
Loading…
Reference in New Issue
Block a user