From 7d7234037f8bbb493dd6a452ecd8e0b93ee5d377 Mon Sep 17 00:00:00 2001 From: "XI.CHEN" <2311041011@qq.com> Date: Fri, 14 Feb 2025 13:33:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B2=E5=8F=A3log=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E5=90=8E=E7=BC=80=E6=94=B9=E4=B8=BAtxt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/SensorsProtocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/SensorsProtocol.cpp b/app/src/main/cpp/SensorsProtocol.cpp index 2bae3995..a54939f8 100644 --- a/app/src/main/cpp/SensorsProtocol.cpp +++ b/app/src/main/cpp/SensorsProtocol.cpp @@ -1687,7 +1687,7 @@ int SaveLogTofile(int commid, char *szbuf) } // 写入文件到sdcard memset(filename, 0, sizeof(filename)); - sprintf(filename, "%sCOM%dlog-%04d-%02d-%02d.log", filedir, commid + 1, t0.tm_year + 1900, t0.tm_mon + 1, t0.tm_mday); + sprintf(filename, "%sCOM%dlog-%04d-%02d-%02d.txt", filedir, commid + 1, t0.tm_year + 1900, t0.tm_mon + 1, t0.tm_mday); fp = fopen(filename, "a+"); if (NULL == fp) return -1;