From 170c437364301a8732d4fd4ad4afff1ec2b2f2d5 Mon Sep 17 00:00:00 2001 From: zzh Date: Thu, 12 Jun 2025 14:44:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86ota=E5=92=8Ctag=20se?= =?UTF-8?q?arch=E7=BA=BF=E7=A8=8Bcpu=E6=80=BB=E6=98=AF=E5=8D=A0=E7=94=A8?= =?UTF-8?q?=E7=99=BE=E5=88=86=E7=99=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index ac2db5e..5d0d88d 100644 --- a/main.c +++ b/main.c @@ -1197,16 +1197,16 @@ void *thread_tag_search_send(void *arg){ prctl(PR_SET_NAME, "tag_search"); while(1){ if(isSearchLabelOn){ - //uart_data_send_head_search(&uartSend,5); sleep(10); searchTimeNew=getCurrentTime(); - //LOG_I("searchTimeNew:%d\n",searchTimeNew); if((searchTimeNew-searchTimeOld)>=(searchTimeOut-20)){ isSearchReport=true; search_tag_report(); isSearchReport=false; isSearchLabelOn=false; } + } else { + usleep(100000); // 休眠100ms } } } @@ -1217,10 +1217,9 @@ void *thread_do_ota(void *arg){ if(isOtaEnable && isSendComEnd && !isLEDOtaSuccess){ sleep(1); otaLeds(); + } else { + usleep(100000); // 休眠100ms } - //if(isOtaEnable && isSendComEnd && !isAPOtaSuccess){ - // otaAp(); - //} } }