1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-05 15:34:57 -04:00

Test Source: new combo box for auto correction options (2)

This commit is contained in:
f4exb
2018-02-04 22:52:31 +01:00
parent 5f49dff49d
commit 6b26543655
5 changed files with 110 additions and 3 deletions
@@ -141,7 +141,7 @@ void TestSourceGui::on_centerFrequency_changed(quint64 value)
void TestSourceGui::on_autoCorr_currentIndexChanged(int index)
{
if ((index < 0) || (index > TestSourceSettings::AutoCorrDCAndIQ)) {
if ((index < 0) || (index > TestSourceSettings::AutoCorrLast)) {
return;
}
@@ -81,7 +81,7 @@ bool TestSourceSettings::deserialize(const QByteArray& data)
d.readS32(7, &m_amplitudeBits, 128);
d.readS32(8, &intval, 0);
if (intval < 0 || intval > (int) AutoCorrDCAndIQ) {
if (intval < 0 || intval > (int) AutoCorrLast) {
m_autoCorrOptions = AutoCorrNone;
} else {
m_autoCorrOptions = (AutoCorrOptions) intval;
@@ -27,7 +27,8 @@ struct TestSourceSettings {
typedef enum {
AutoCorrNone,
AutoCorrDC,
AutoCorrDCAndIQ
AutoCorrDCAndIQ,
AutoCorrLast,
} AutoCorrOptions;
quint64 m_centerFrequency;