feat: 🔥 去掉频繁打印的终端输出

This commit is contained in:
yuanQie 2025-06-14 17:15:19 +08:00
parent fad3612d74
commit 3252a5c822

View File

@ -189,6 +189,7 @@ void *handleUdpTransmission(void *arg)
// while
uint8_t block_n = 0;
uint8_t cut_i = 0;
printf("[udp.sendto] send to 172.29.118.76:28864 ...\n");
while (1)
{
if (1 == slot_ind_flag)
@ -202,14 +203,14 @@ void *handleUdpTransmission(void *arg)
);
block_n = 0;
if (w_idx == r_idx){
printf("[while(p)]: w_idx = %hhu, r_idx = %hhu\n", w_idx, r_idx);
printf("[while(p)]: pass\n");
// printf("[while(p)]: w_idx = %hhu, r_idx = %hhu\n", w_idx, r_idx);
// printf("[while(p)]: pass\n");
}
else
{
if (r_idx < w_idx) {
printf("[while(r)]: w_idx = %hhu, r_idx = %hhu\n", w_idx, r_idx);
printf("[while(r)]: r_idx < w_idx\n");
// printf("[while(r)]: w_idx = %hhu, r_idx = %hhu\n", w_idx, r_idx);
// printf("[while(r)]: r_idx < w_idx\n");
block_n = w_idx - r_idx;
for (cut_i = 0; cut_i < block_n; cut_i++)
{
@ -234,8 +235,8 @@ void *handleUdpTransmission(void *arg)
}
else //r_idx > w_idx
{
printf("[while(w)]: w_idx = %hhu, r_idx = %hhu\n", w_idx, r_idx);
printf("[while(w)]: w_idx < r_idx\n");
// printf("[while(w)]: w_idx = %hhu, r_idx = %hhu\n", w_idx, r_idx);
// printf("[while(w)]: w_idx < r_idx\n");
for (cut_i = 0; cut_i < (8-r_idx); cut_i++)
{
memcpy(udp_data_buffer,