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

Morse Decoder: added option to show decoder thershold trace or not

This commit is contained in:
f4exb
2024-05-23 18:51:54 +02:00
parent 5841290df4
commit 4d5958f630
20 changed files with 123 additions and 13 deletions
@@ -526,6 +526,7 @@ void MorseDecoder::webapiFormatFeatureSettings(
response.getMorseDecoderSettings()->setLogEnabled(settings.m_logEnabled ? 1 : 0);
response.getMorseDecoderSettings()->setAuto(settings.m_auto ? 1 : 0);
response.getMorseDecoderSettings()->setShowThreshold(settings.m_showThreshold ? 1 : 0);
if (settings.m_scopeGUI)
{
@@ -600,6 +601,9 @@ void MorseDecoder::webapiUpdateFeatureSettings(
if (featureSettingsKeys.contains("auto")) {
settings.m_auto = response.getMorseDecoderSettings()->getAuto() != 0;
}
if (featureSettingsKeys.contains("showThreshold")) {
settings.m_showThreshold = response.getMorseDecoderSettings()->getShowThreshold() != 0;
}
if (settings.m_scopeGUI && featureSettingsKeys.contains("scopeGUI")) {
settings.m_scopeGUI->updateFrom(featureSettingsKeys, response.getMorseDecoderSettings()->getScopeConfig());
}