feat: 🔥 去掉频繁打印的终端输出
This commit is contained in:
parent
fad3612d74
commit
3252a5c822
@ -189,6 +189,7 @@ void *handleUdpTransmission(void *arg)
|
|||||||
// while
|
// while
|
||||||
uint8_t block_n = 0;
|
uint8_t block_n = 0;
|
||||||
uint8_t cut_i = 0;
|
uint8_t cut_i = 0;
|
||||||
|
printf("[udp.sendto] send to 172.29.118.76:28864 ...\n");
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
if (1 == slot_ind_flag)
|
if (1 == slot_ind_flag)
|
||||||
@ -202,14 +203,14 @@ void *handleUdpTransmission(void *arg)
|
|||||||
);
|
);
|
||||||
block_n = 0;
|
block_n = 0;
|
||||||
if (w_idx == r_idx){
|
if (w_idx == r_idx){
|
||||||
printf("[while(p)]: w_idx = %hhu, r_idx = %hhu\n", 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)]: pass\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (r_idx < w_idx) {
|
if (r_idx < w_idx) {
|
||||||
printf("[while(r)]: w_idx = %hhu, r_idx = %hhu\n", w_idx, r_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)]: r_idx < w_idx\n");
|
||||||
block_n = w_idx - r_idx;
|
block_n = w_idx - r_idx;
|
||||||
for (cut_i = 0; cut_i < block_n; cut_i++)
|
for (cut_i = 0; cut_i < block_n; cut_i++)
|
||||||
{
|
{
|
||||||
@ -234,8 +235,8 @@ void *handleUdpTransmission(void *arg)
|
|||||||
}
|
}
|
||||||
else //r_idx > w_idx
|
else //r_idx > w_idx
|
||||||
{
|
{
|
||||||
printf("[while(w)]: w_idx = %hhu, r_idx = %hhu\n", w_idx, r_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 < r_idx\n");
|
||||||
for (cut_i = 0; cut_i < (8-r_idx); cut_i++)
|
for (cut_i = 0; cut_i < (8-r_idx); cut_i++)
|
||||||
{
|
{
|
||||||
memcpy(udp_data_buffer,
|
memcpy(udp_data_buffer,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user