异常判定在出错时才打印,检测时通信异常蜂鸣器响一声
取消一些通信日志打印
This commit is contained in:
@@ -35,7 +35,7 @@ int if_uart::write(myarray data)
|
||||
// qWarning() << "Can’t send data , TcpClient socket not connect.";
|
||||
return 0;
|
||||
}
|
||||
qDebug("uart send:%s", data.toHex(' ').data());
|
||||
// qDebug("uart send:%s", data.toHex(' ').data());
|
||||
|
||||
int wb = serial_->write(data);
|
||||
if ((!serial_->flush()) || (wb != data.size()))
|
||||
|
Reference in New Issue
Block a user