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

取消一些通信日志打印
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

@@ -35,7 +35,7 @@ int if_uart::write(myarray data)
// qWarning() << "Cant 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()))