mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-17 05:41:56 -05:00
NFM demod: save CTCSS settings
This commit is contained in:
parent
e9328c14aa
commit
70cce80995
@ -106,7 +106,7 @@ Done since the fork
|
||||
- Corrected the nasty audio band resampling bug preventing use of sample rates that are not power of 2 multiples of 48kHz. This was because the resampling ratio was calculated with an integer division instead of a float division.
|
||||
- As a consequence of the above added more interesting values for the available sampling rates of the BladeRF plugin
|
||||
- Variable span for the SSB demod down to 1.5 kHz
|
||||
- Filter out CTCSS tones in NFMDemod
|
||||
- Filter out CTCSS tones for audio and full CTCSS support in NFMDemod
|
||||
|
||||
=====
|
||||
To Do
|
||||
|
@ -58,6 +58,7 @@ QByteArray NFMDemodGUI::serialize() const
|
||||
s.writeS32(5, ui->squelch->value());
|
||||
//s.writeBlob(6, ui->spectrumGUI->serialize());
|
||||
s.writeU32(7, m_channelMarker->getColor().rgb());
|
||||
s.writeS32(8, ui->ctcss->currentIndex());
|
||||
return s.final();
|
||||
}
|
||||
|
||||
@ -88,6 +89,8 @@ bool NFMDemodGUI::deserialize(const QByteArray& data)
|
||||
//ui->spectrumGUI->deserialize(bytetmp);
|
||||
if(d.readU32(7, &u32tmp))
|
||||
m_channelMarker->setColor(u32tmp);
|
||||
d.readS32(8, &tmp, 0);
|
||||
ui->ctcss->setCurrentIndex(tmp);
|
||||
applySettings();
|
||||
return true;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user