mirror of https://github.com/ArduPilot/ardupilot
AP_Periph: fixed reply for serial tunnel
add in serial index
This commit is contained in:
parent
adc0ebf9de
commit
68f5c7b4dc
|
@ -193,6 +193,7 @@ void AP_Periph_FW::send_serial_monitor_data()
|
||||||
pkt.protocol.protocol = uart_monitor.protocol;
|
pkt.protocol.protocol = uart_monitor.protocol;
|
||||||
pkt.buffer.len = n;
|
pkt.buffer.len = n;
|
||||||
pkt.baudrate = uart_monitor.baudrate;
|
pkt.baudrate = uart_monitor.baudrate;
|
||||||
|
pkt.serial_id = uart_monitor.uart_num;
|
||||||
memcpy(pkt.buffer.data, buf, n);
|
memcpy(pkt.buffer.data, buf, n);
|
||||||
|
|
||||||
uint8_t buffer[UAVCAN_TUNNEL_TARGETTED_MAX_SIZE] {};
|
uint8_t buffer[UAVCAN_TUNNEL_TARGETTED_MAX_SIZE] {};
|
||||||
|
|
Loading…
Reference in New Issue