Merge pull request #1418 from srcejon/remote_control

#1417 - Fix MacOS compilation
This commit is contained in:
Edouard Griffiths 2022-09-17 22:48:05 +02:00 committed by GitHub
commit dca9fe324d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ void VISADevice::setState(const QString &controlId, const QString &state)
VISAControl *control = reinterpret_cast<VISAControl *>(c);
if (control->m_id == controlId)
{
QString commands = QString::asprintf(control->m_setState.toUtf8(), state);
QString commands = QString::asprintf(control->m_setState.toUtf8(), state.toUtf8().data());
bool error;
m_visa.processCommands(m_session, commands, &error);
if (error) {