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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user