mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-05-03 20:54:00 -04:00
VISA: Fix potential undefined behaviour.
This commit is contained in:
parent
880d7121ec
commit
071f36da23
@ -89,7 +89,8 @@ ViSession VISA::open(const QString& device)
|
||||
ViSession session;
|
||||
if (isAvailable())
|
||||
{
|
||||
if (VI_SUCCESS == viOpen(m_defaultRM, device.toLatin1().data(), VI_NULL, VI_NULL, &session))
|
||||
QByteArray deviceBA = device.toLatin1();
|
||||
if (VI_SUCCESS == viOpen(m_defaultRM, deviceBA.data(), VI_NULL, VI_NULL, &session))
|
||||
{
|
||||
qDebug() << "VISA::open: Opened VISA device: " << device;
|
||||
return session;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user