From b3dc672c57aa5374fcd1ba1da5321d6c63d68e0f Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 14 Mar 2024 10:47:14 +0800
Subject: [PATCH] Add SHT20 and AT24C256 Logic Analyzer LA5016 capture data

---
 project/socketd/booster/packet.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/project/socketd/booster/packet.c b/project/socketd/booster/packet.c
index a6075fe..6aa76a4 100644
--- a/project/socketd/booster/packet.c
+++ b/project/socketd/booster/packet.c
@@ -40,7 +40,6 @@
         return -1;
     }
 
-
     time_t now = time(NULL);
     localtime_r(&now, ptm);
 
@@ -59,10 +58,9 @@
     }
 
     ptm = &pack_info->sample_time;
-    snprintf(strtime, sizeof(strtime), "%04d-%02d-%2d %02d:%02d:%02d",
+    snprintf(strtime, sizeof(strtime), "%04d-%02d-%02d %02d:%02d:%02d",
             ptm->tm_year+1900, ptm->tm_mon+1, ptm->tm_mday,
             ptm->tm_hour, ptm->tm_min, ptm->tm_sec);
-
 
     memset(pack_buf, 0, size);
     snprintf(pack_buf, size, "%s|%s|%.3f", pack_info->devid, strtime, pack_info->temper);

--
Gitblit v1.9.1