AntennaTracker: use setup_uart()

This commit is contained in:
Andrew Tridgell 2014-05-16 11:46:10 +10:00
parent 35e87fa2ea
commit 9e7e2eb106

View File

@ -35,9 +35,7 @@ static void init_tracker()
check_usb_mux();
// we have a 2nd serial port for telemetry
hal.uartC->begin(map_baudrate(g.serial1_baud, SERIAL1_BAUD),
128, SERIAL1_BUFSIZE);
gcs[1].init(hal.uartC);
gcs[1].setup_uart(hal.uartC, map_baudrate(g.serial1_baud, SERIAL1_BAUD), 128, SERIAL1_BUFSIZE);
mavlink_system.sysid = g.sysid_this_mav;