kopia lustrzana https://github.com/f4exb/sdrangel
DSD demod settings: save input requency offset
rodzic
a03d08248b
commit
3e9be4181c
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue