1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-05 15:34:57 -04:00

REST API: config (9): preset channel Tx adapters where there is CW keyer. Fixed the rest of the modulators

This commit is contained in:
f4exb
2019-08-03 01:47:36 +02:00
parent 68a4e23fb0
commit ae49f17484
13 changed files with 86 additions and 105 deletions
+5 -1
View File
@@ -89,6 +89,8 @@ QByteArray SSBModSettings::serialize() const
if (m_cwKeyerGUI) {
s.writeBlob(6, m_cwKeyerGUI->serialize());
} else { // standalone operation with presets
s.writeBlob(6, m_cwKeyerSettings.serialize());
}
s.writeS32(7, roundf(m_lowCutoff / 100.0));
@@ -149,10 +151,12 @@ bool SSBModSettings::deserialize(const QByteArray& data)
}
d.readU32(5, &m_rgbColor);
d.readBlob(6, &bytetmp);
if (m_cwKeyerGUI) {
d.readBlob(6, &bytetmp);
m_cwKeyerGUI->deserialize(bytetmp);
} else { // standalone operation with presets
m_cwKeyerSettings.deserialize(bytetmp);
}
d.readS32(7, &tmp, 3);