mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-09-28 15:56:33 -04:00
#1417 - Fix compilation on Mac
This commit is contained in:
parent
13ec843891
commit
3786dc1aae
@ -263,7 +263,7 @@ void VISADevice::setState(const QString &controlId, const QString &state)
|
|||||||
VISAControl *control = reinterpret_cast<VISAControl *>(c);
|
VISAControl *control = reinterpret_cast<VISAControl *>(c);
|
||||||
if (control->m_id == controlId)
|
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;
|
bool error;
|
||||||
m_visa.processCommands(m_session, commands, &error);
|
m_visa.processCommands(m_session, commands, &error);
|
||||||
if (error) {
|
if (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user