AP_Periph: fixed reply for serial tunnel

add in serial index
This commit is contained in:
Andrew Tridgell 2023-11-19 07:26:33 +11:00
parent adc0ebf9de
commit 68f5c7b4dc
1 changed files with 1 additions and 0 deletions

View File

@ -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] {};