版本号修改2.2.0,生产版本

This commit is contained in:
zzh 2026-01-13 10:14:35 +08:00
parent e9b7bc62a8
commit bb81bd63fa

8
main.c
View File

@ -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";
@ -2434,7 +2434,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;
@ -2444,9 +2444,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;
}