mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
clean up
This commit is contained in:
@@ -56,18 +56,4 @@ void Visa::send(QString data)
|
||||
data.append('\n');
|
||||
m_tcp_socket->write(data.toUtf8());
|
||||
m_tcp_socket->waitForBytesWritten();
|
||||
}
|
||||
|
||||
QString Visa::query(QString data)
|
||||
{
|
||||
uint32_t counter = 0;
|
||||
m_data.clear();
|
||||
send(data);
|
||||
while (!m_data_ready && counter < 1024)
|
||||
{
|
||||
QCoreApplication::processEvents();
|
||||
counter++;
|
||||
}
|
||||
|
||||
return m_data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user