添加装置重启功能和控制位写入功能

This commit is contained in:
lnk
2026-05-14 16:16:16 +08:00
parent 2f584fda30
commit c6ca57a204
8 changed files with 664 additions and 172 deletions

View File

@@ -113,12 +113,12 @@ extern LOG_TLS int g_log_code_tls; // 声明为 TLS 变量,定义见 log4.cpp
int __old_code__ = g_log_code_tls; \
g_log_code_tls = (int)(CODE_INT); \
\
char __msg_buf__[256]; \
char __msg_buf__[512]; \
format_log_msg(__msg_buf__, sizeof(__msg_buf__), __VA_ARGS__); \
\
const char* __key_raw__ = (KEY); \
\
char __key_buf__[256]; \
char __key_buf__[512]; \
switch ((int)(KEY_TYPE)) { \
case 0: \
snprintf(__key_buf__, sizeof(__key_buf__), "process"); \