Skip to content

Commit

Permalink
Merge pull request #2267 from srcejon/fix_2266
Browse files Browse the repository at this point in the history
Fix DeviceAPI::deserialize.
  • Loading branch information
f4exb authored Oct 7, 2024
2 parents 8f2ac70 + 227eb55 commit 6e01114
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 6e01114

Please sign in to comment.