From 2b5cffcd8559f57f6246e5175523f26c30b261a0 Mon Sep 17 00:00:00 2001 From: tangchao Date: Thu, 24 Feb 2022 15:20:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8D=93=E5=93=A5=E4=B8=B2?= =?UTF-8?q?=E5=8F=A3=E6=8E=A5=E5=8F=97=E6=95=B0=E6=8D=AE=E7=AD=89=E5=BE=85?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Source_Files/ATPControl_Serial_QT.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/othersoft/calibration_console/Source_Files/ATPControl_Serial_QT.cpp b/othersoft/calibration_console/Source_Files/ATPControl_Serial_QT.cpp index d6acb15..4480fd5 100644 --- a/othersoft/calibration_console/Source_Files/ATPControl_Serial_QT.cpp +++ b/othersoft/calibration_console/Source_Files/ATPControl_Serial_QT.cpp @@ -326,15 +326,16 @@ int ZZ_ATPControl_Serial_Qt::RecvData(QByteArray &qbData) int iCounter = 0; while (qbData.size() < 4) { - m_pSerialPort->waitForReadyRead(600); + m_pSerialPort->waitForReadyRead(1000); QByteArray qbTemp = m_pSerialPort->readAll(); qbData.append(qbTemp); - if (iCounter > 25) + if (iCounter > 150) { qDebug() << "Err:RecvData Failed,Not Enough Data.Exit Code:1" << qbData.size(); return 1; } + iCounter++; }