1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Test source: added sawtooth pattern

This commit is contained in:
f4exb
2018-10-24 00:10:12 +02:00
parent 2958e1adba
commit faf428ed3d
5 changed files with 50 additions and 5 deletions
@@ -354,8 +354,15 @@ bool TestSourceInput::applySettings(const TestSourceSettings& settings, bool for
if ((m_settings.m_modulation != settings.m_modulation) || force)
{
if (m_testSourceThread != 0) {
if (m_testSourceThread != 0)
{
m_testSourceThread->setModulation(settings.m_modulation);
if (settings.m_modulation == TestSourceSettings::ModulationPattern0) {
m_testSourceThread->setPattern0();
} else if (settings.m_modulation == TestSourceSettings::ModulationPattern1) {
m_testSourceThread->setPattern1();
}
}
}