mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
NFM demod: if squelch < -100 assume it is old format and divide by 10
This commit is contained in:
parent
b99afedc4a
commit
ed1b706661
@ -110,7 +110,7 @@ bool NFMDemodSettings::deserialize(const QByteArray& data)
|
||||
d.readS32(4, &tmp, 20);
|
||||
m_volume = tmp / 10.0;
|
||||
d.readS32(5, &tmp, -30);
|
||||
m_squelch = (tmp < -100 ? -100 : tmp) * 1.0;
|
||||
m_squelch = (tmp < -100 ? tmp/10 : tmp) * 1.0;
|
||||
d.readU32(7, &m_rgbColor, QColor(255, 0, 0).rgb());
|
||||
d.readS32(8, &m_ctcssIndex, 0);
|
||||
d.readBool(9, &m_ctcssOn, false);
|
||||
|
Loading…
Reference in New Issue
Block a user