异常判定在出错时才打印,检测时通信异常蜂鸣器响一声
取消一些通信日志打印
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user