From 227eb553655dc3dc6f0195e9245bfe53500ab57d Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Mon, 7 Oct 2024 09:34:23 +0100 Subject: [PATCH] Fix DeviceAPI::deserialize. Fixes #2266. --- sdrbase/device/deviceapi.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sdrbase/device/deviceapi.cpp b/sdrbase/device/deviceapi.cpp index fce595cb1..08a699e1d 100644 --- a/sdrbase/device/deviceapi.cpp +++ b/sdrbase/device/deviceapi.cpp @@ -550,22 +550,22 @@ bool DeviceAPI::deserialize(const QByteArray& data) if (m_deviceSourceEngine && m_deviceSourceEngine->getSource()) { d.readBlob(1, &bdata); - if (data.size() > 0) { - m_deviceSourceEngine->getSource()->deserialize(data); + if (bdata.size() > 0) { + m_deviceSourceEngine->getSource()->deserialize(bdata); } } if (m_deviceSinkEngine && m_deviceSinkEngine->getSink()) { d.readBlob(2, &bdata); - if (data.size() > 0) { - m_deviceSinkEngine->getSink()->deserialize(data); + if (bdata.size() > 0) { + m_deviceSinkEngine->getSink()->deserialize(bdata); } } if (m_deviceMIMOEngine && m_deviceMIMOEngine->getMIMO()) { d.readBlob(3, &bdata); - if (data.size() > 0) { - m_deviceMIMOEngine->getMIMO()->deserialize(data); + if (bdata.size() > 0) { + m_deviceMIMOEngine->getMIMO()->deserialize(bdata); } } d.readList(4, ¢erFrequency);