mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-14 15:33:34 -04:00
Review presets #1. Apply to HackRF
This commit is contained in:
+14
-19
@@ -17,7 +17,6 @@ void Preset::resetToDefaults()
|
||||
m_scopeConfig.clear();
|
||||
m_dcOffsetCorrection = false;
|
||||
m_iqImbalanceCorrection = false;
|
||||
m_showScope = true;
|
||||
m_layout.clear();
|
||||
m_spectrumConfig.clear();
|
||||
m_channelConfigs.clear();
|
||||
@@ -33,15 +32,13 @@ QByteArray Preset::serialize() const
|
||||
s.writeString(1, m_group);
|
||||
s.writeString(2, m_description);
|
||||
s.writeU64(3, m_centerFrequency);
|
||||
s.writeBool(4, m_showScope);
|
||||
s.writeBlob(5, m_layout);
|
||||
s.writeBlob(6, m_spectrumConfig);
|
||||
s.writeBool(7, m_dcOffsetCorrection);
|
||||
s.writeBool(8, m_iqImbalanceCorrection);
|
||||
s.writeBlob(9, m_scopeConfig);
|
||||
s.writeString(10, m_source);
|
||||
s.writeBlob(11, m_sourceGeneralConfig);
|
||||
s.writeBlob(12, m_sourceConfig);
|
||||
s.writeBlob(4, m_layout);
|
||||
s.writeBlob(5, m_spectrumConfig);
|
||||
s.writeBool(6, m_dcOffsetCorrection);
|
||||
s.writeBool(7, m_iqImbalanceCorrection);
|
||||
s.writeBlob(8, m_scopeConfig);
|
||||
s.writeString(9, m_source);
|
||||
s.writeBlob(10, m_sourceConfig);
|
||||
|
||||
s.writeS32(200, m_channelConfigs.size());
|
||||
|
||||
@@ -69,15 +66,13 @@ bool Preset::deserialize(const QByteArray& data)
|
||||
d.readString(1, &m_group, "default");
|
||||
d.readString(2, &m_description, "no name");
|
||||
d.readU64(3, &m_centerFrequency, 0);
|
||||
d.readBool(4, &m_showScope, true);
|
||||
d.readBlob(5, &m_layout);
|
||||
d.readBlob(6, &m_spectrumConfig);
|
||||
d.readBool(7, &m_dcOffsetCorrection, false);
|
||||
d.readBool(8, &m_iqImbalanceCorrection, false);
|
||||
d.readBlob(9, &m_scopeConfig);
|
||||
d.readString(10, &m_source);
|
||||
d.readBlob(11, &m_sourceGeneralConfig);
|
||||
d.readBlob(12, &m_sourceConfig);
|
||||
d.readBlob(4, &m_layout);
|
||||
d.readBlob(5, &m_spectrumConfig);
|
||||
d.readBool(6, &m_dcOffsetCorrection, false);
|
||||
d.readBool(7, &m_iqImbalanceCorrection, false);
|
||||
d.readBlob(8, &m_scopeConfig);
|
||||
d.readString(9, &m_source);
|
||||
d.readBlob(10, &m_sourceConfig);
|
||||
|
||||
qDebug() << " m_group: " << m_group.toStdString().c_str();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user