叠加读取串口

This commit is contained in:
zhengxuan.zhang
2022-11-25 15:16:50 +08:00
parent b94d85b393
commit d73ac43da5
8 changed files with 138 additions and 238 deletions
+1 -4
View File
@@ -65,7 +65,7 @@ void CLogger::SendAndFlush(LPCTSTR format, ...)
LeaveCriticalSection(&m_lockLogger);
}
//https://www.educative.io/answers/what-is-vswprintfs-in-c
//vswprintf_s()参考连接:https://www.educative.io/answers/what-is-vswprintfs-in-c
void CLogger::SendAndFlushWithTime(LPCTSTR format, ...)
{
EnterCriticalSection(&m_lockLogger);
@@ -133,7 +133,6 @@ void CLogger::SendAndFlushPerMode(LPCTSTR format, ...)
LeaveCriticalSection(&m_lockLogger);
}
string ConvertCharToString(char* a, int size)
{
int i;
@@ -145,7 +144,6 @@ string ConvertCharToString(char* a, int size)
return s;
}
//删除指定目录以及目录下的所有文件
#include <iostream>
#include <io.h>
@@ -153,7 +151,6 @@ string ConvertCharToString(char* a, int size)
using namespace std;
void DelFiles(string path)
{
//在目录后面加上"\\*.*"进行第一次搜索