mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 03:49:42 +08:00
调试上传用
This commit is contained in:
@ -19,6 +19,7 @@ GY39Controller::~GY39Controller()
|
||||
int GY39Controller::SendCommand(QByteArray qbCommand)
|
||||
{
|
||||
qint64 qi64Write = m_pSerialPort->write(qbCommand);
|
||||
m_pSerialPort->waitForBytesWritten(5000);
|
||||
if (qi64Write != qbCommand.size())
|
||||
{
|
||||
qDebug() << "Err:write Failed.Exit Code:1" << qi64Write;
|
||||
@ -36,7 +37,7 @@ int GY39Controller::RecvHumitureData(QByteArray &qbData)
|
||||
int iCounter = 0;
|
||||
while (qbData.size() < 15)
|
||||
{
|
||||
m_pSerialPort->waitForReadyRead(50);
|
||||
m_pSerialPort->waitForReadyRead(5000);
|
||||
QByteArray qbTemp = m_pSerialPort->readAll();
|
||||
qbData.append(qbTemp);
|
||||
|
||||
|
Reference in New Issue
Block a user