diff --git a/ArduCopter/system.pde b/ArduCopter/system.pde index 849bb4164606d404ff8582ba547fcb0690552d56..65db9cfab10e61a46d40ab7c280b897368dbfcea 100644 --- a/ArduCopter/system.pde +++ b/ArduCopter/system.pde @@ -186,14 +186,10 @@ static void init_ardupilot() // we have a 2nd serial port for telemetry on all boards except // APM2. We actually do have one on APM2 but it isn't necessary as // a MUX is used - hal.uartC->begin(map_baudrate(g.serial1_baud, SERIAL1_BAUD), 128, 128); - gcs[1].init(hal.uartC); + gcs[1].setup_uart(hal.uartC, map_baudrate(g.serial1_baud, SERIAL1_BAUD), 128, 128); #endif #if MAVLINK_COMM_NUM_BUFFERS > 2 - if (hal.uartD != NULL) { - hal.uartD->begin(map_baudrate(g.serial2_baud, SERIAL2_BAUD), 128, 128); - gcs[2].init(hal.uartD); - } + gcs[2].setup_uart(hal.uartD, map_baudrate(g.serial2_baud, SERIAL2_BAUD), 128, 128); #endif // identify ourselves correctly with the ground station