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;
|
||||
}
|
||||
}
|
||||
@@ -50,13 +50,6 @@ class Visa : public QObject
|
||||
* @param data The data to send
|
||||
*/
|
||||
void send(QString data);
|
||||
/**
|
||||
* @brief Query the VISA device
|
||||
*
|
||||
* @param data The query data
|
||||
* @return QString The response from the device
|
||||
*/
|
||||
QString query(QString data);
|
||||
|
||||
signals:
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user