1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 13:47:01 -04:00

Better handling of rtlsdr GUI display when settings change (initial load, load of presets)

This commit is contained in:
f4exb
2015-05-10 00:08:42 +02:00
parent b2e78e1411
commit e536a1f1e9
4 changed files with 102 additions and 14 deletions
+4 -2
View File
@@ -27,7 +27,9 @@ MESSAGE_CLASS_DEFINITION(RTLSDRInput::MsgReportRTLSDR, Message)
RTLSDRInput::Settings::Settings() :
m_gain(0),
m_samplerate(1024000)
m_samplerate(1024000),
m_loPpmCorrection(0),
m_log2Decim(4)
{
}
@@ -60,7 +62,7 @@ bool RTLSDRInput::Settings::deserialize(const QByteArray& data)
if(d.getVersion() == 1) {
d.readS32(1, &m_gain, 0);
//d.readS32(2, &m_samplerate, 0);
d.readS32(2, &m_samplerate, 0);
d.readS32(3, &m_loPpmCorrection, 0);
d.readU32(4, &m_log2Decim, 4);
return true;