DSD demod settings: save input requency offset

pull/85/head
f4exb 2017-10-03 22:19:40 +02:00
rodzic a03d08248b
commit 3e9be4181c
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -61,6 +61,7 @@ QByteArray DSDDemodSettings::serialize() const
s.writeS32(3, m_demodGain*100.0);
s.writeS32(4, m_fmDeviation/100.0);
s.writeS32(5, m_squelch);
s.writeS32(6, m_inputFrequencyOffset);
s.writeU32(7, m_rgbColor);
s.writeS32(8, m_squelchGate);
s.writeS32(9, m_volume*10.0);
@ -113,6 +114,8 @@ bool DSDDemodSettings::deserialize(const QByteArray& data)
m_fmDeviation = tmp * 100.0;
d.readS32(5, &tmp, -40);
m_squelch = tmp;
d.readS32(6, &tmp, 0);
m_inputFrequencyOffset = tmp;
d.readU32(7, &m_rgbColor);
d.readS32(8, &m_squelchGate, 5);
d.readS32(9, &tmp, 20);