异常判定在出错时才打印,检测时通信异常蜂鸣器响一声

取消一些通信日志打印
This commit is contained in:
ranchuan
2024-01-06 09:59:58 +08:00
parent 307eb513ef
commit b76c04d072
11 changed files with 29 additions and 16 deletions

View File

@@ -3,6 +3,7 @@
#include "base/check_cfg.h"
#include "QDebug"
#include "base/crc.h"
#include "base/beep.h"
@@ -547,6 +548,7 @@ void slave_cmd::timeout()
timeout_stop();
int addr_timeout=addr^addr_response;
qWarning("addr 0x%06X timeout",addr_timeout);
Beep()->set_beep(300,300,1);
end(1,ret_data);
busy=0;
}