From db58b1a99bcfa7a54a4856e8f65ab26b251c393f Mon Sep 17 00:00:00 2001 From: zzh <838331105@qq.com> Date: Fri, 23 Jan 2026 14:55:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=90=88=E5=8C=85=E4=BA=AE?= =?UTF-8?q?=E7=81=AF=E6=97=B6=E7=9A=84=E6=96=87=E4=BB=B6=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index d722b17..ac2e7ef 100644 --- a/main.c +++ b/main.c @@ -2491,7 +2491,7 @@ void *thread_mqtt_recv(void *arg){ DEBUG_TX("flashInterval:%s\n",mqtt_parm.msg_flashInterval); get_string_from_json_string_by_key_unescape(msg_data, "lightDuration", mqtt_parm.msg_lightDuration, sizeof(mqtt_parm.msg_lightDuration)); DEBUG_TX("lightDuration:%s\n",mqtt_parm.msg_lightDuration); - pthread_mutex_lock(&lightsn_buffer_mutex); + //pthread_mutex_lock(&lightsn_buffer_mutex); if (!is_3015_collecting) { is_3015_collecting = true; first_3015_time = time(NULL); @@ -2518,7 +2518,7 @@ void *thread_mqtt_recv(void *arg){ LOG_I("buffered sn: %s, color: %s, sound: %s, flash: %s\n", lightsn_buffer[lightsn_buffer_count], color_buffer[lightsn_buffer_count], sound_buffer[lightsn_buffer_count], flash_buffer[lightsn_buffer_count]); lightsn_buffer_count++; } - pthread_mutex_unlock(&lightsn_buffer_mutex); + //pthread_mutex_unlock(&lightsn_buffer_mutex); mqtt_service_reply(stationsn, mqtt_parm.msg_messageId, "ok", 1, productid); }else if(strcmp(mqtt_parm.msg_type,"3022")==0){ LOG_I("3022 updata lable\n");