From 594cf28244b9420e5a8543883f3df183368dfbdd Mon Sep 17 00:00:00 2001 From: mrDarker <mr.darker@163.com> Date: 星期二, 13 五月 2025 15:06:12 +0800 Subject: [PATCH] 1. 修复AlarmList.csv文件异常时导致闪退的问题 2. 修复Master.dat异常时进程无法退出的问题 --- SourceCode/Bond/Servo/ToolUnits.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/SourceCode/Bond/Servo/ToolUnits.h b/SourceCode/Bond/Servo/ToolUnits.h index 9e8fdfb..feeae08 100644 --- a/SourceCode/Bond/Servo/ToolUnits.h +++ b/SourceCode/Bond/Servo/ToolUnits.h @@ -28,5 +28,8 @@ static std::vector<CString> GetFileNamesInDirectory(const CString& strFolderPath, const CString& strExtension); static std::string getRecipePath(); static std::string getCurrentTimeString(); + static bool startsWith(const std::string& str, const std::string& prefix); + static std::string& toHexString(int value, std::string& strOut); + static void convertString(const char* pszBuffer, int size, std::string& strOut); }; -- Gitblit v1.9.3