feat: 🐛 修正读计数可能跳越界的情况。
This commit is contained in:
parent
64c7f3f16f
commit
7e1adb1cef
@ -260,7 +260,7 @@ void *handleUdpTransmission(void *arg)
|
||||
for (cut_i = 0; cut_i < (8-r_idx); cut_i++)
|
||||
{
|
||||
memcpy(udp_data_buffer,
|
||||
(char*)map_base_rx_case52 + r_idx * 16016,
|
||||
(char*)map_base_rx_case52 + (r_idx+cut_i) * 16016,
|
||||
16016);
|
||||
// 发送数据到上位机
|
||||
send_len = sendto(
|
||||
|
Loading…
x
Reference in New Issue
Block a user