From 450a267efbbd1946010db36f871f724f57489045 Mon Sep 17 00:00:00 2001 From: zzh <838331105@qq.com> Date: Tue, 13 Jan 2026 10:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=E4=BF=AE=E6=94=B92.?= =?UTF-8?q?2.0=EF=BC=8C=E7=94=9F=E4=BA=A7=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 234a359..6f7fa6b 100644 --- a/main.c +++ b/main.c @@ -157,7 +157,7 @@ int fd; int UPCASE=0; int count_value=0; int getPayloadTime=100*1000;//usecond -char softwareVersion[16]="2.1.30"; +char softwareVersion[16]="2.2.0"; //char stationsn[16]="d126ei4lj4cc00";//TJ250995217957 //char productid[8]="10045"; //char appSecret[64]="s3izIliw0CF48Pcsi16rjOmoFRf5WEt8"; @@ -2478,7 +2478,7 @@ void *thread_uart_recv_back(void *arg){ }else if(tagFeature==0xFD){ LOG_I("key pressed from tag %08X\n", tagCode); - // 按键防抖:2秒内只处理一次 + // 按键防抖:3秒内只处理一次 time_t now = time(NULL); pthread_mutex_lock(&keyDebounceMutex); bool shouldProcess = true; @@ -2488,9 +2488,9 @@ void *thread_uart_recv_back(void *arg){ for (int i = 0; i < keyDebounceCount; i++) { if (keyDebounceList[i].tagCode == tagCode && keyDebounceList[i].tagCodeHead == tagCodeHead) { debounceIndex = i; - if (now - keyDebounceList[i].lastKeyTime < 2) { + if (now - keyDebounceList[i].lastKeyTime < 3) { shouldProcess = false; - LOG_I("Key debounce: ignoring key press from tag %08X (within 2s)\n", tagCode); + LOG_I("Key debounce: ignoring key press from tag %08X (within 3s)\n", tagCode); } break; }