Skip to content

Commit

Permalink
Fix DeviceAPI::deserialize. Fixes f4exb#2266.
Browse files Browse the repository at this point in the history
  • Loading branch information
srcejon committed Oct 7, 2024
1 parent 8f2ac70 commit 227eb55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sdrbase/device/deviceapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<quint64>(4, &centerFrequency);
Expand Down

0 comments on commit 227eb55

Please sign in to comment.