Skip to content

Commit

Permalink
Fixed MSP msg send bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seeul8er committed Mar 1, 2024
1 parent 71422b1 commit 3a89655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/db_esp32_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ void parse_msp_ltm(int tcp_clients[], struct udp_conn_list_t *udp_connection, ui
if (parse_msp_ltm_byte(db_msp_ltm_port, serial_byte)) {
msp_message_buffer[(*serial_read_bytes - 1)] = serial_byte;
if (db_msp_ltm_port->parse_state == MSP_PACKET_RECEIVED) {
*serial_read_bytes = 0;
send_to_all_clients(tcp_clients, udp_connection, msp_message_buffer, *serial_read_bytes);
*serial_read_bytes = 0;
} else if (db_msp_ltm_port->parse_state == LTM_PACKET_RECEIVED) {
memcpy(&ltm_frame_buffer[ltm_frames_in_buffer_pnt], db_msp_ltm_port->ltm_frame_buffer,
(db_msp_ltm_port->ltm_payload_cnt + 4));
Expand Down

0 comments on commit 3a89655

Please sign in to comment.