fix for offset_freq when demodulator is exactly on center_freq

This commit is contained in:
Jakob Ketterl 2020-05-11 15:04:24 +02:00
parent b0f7fd5d00
commit db7b4f195e

View File

@ -222,7 +222,7 @@ DemodulatorPanel.prototype.transformHashParams = function(params) {
var ret = { var ret = {
mod: params.secondary_mod || params.mod mod: params.secondary_mod || params.mod
}; };
if (params.offset_frequency) ret.offset_frequency = params.offset_frequency; if (typeof(params.offset_frequency) !== 'undefined') ret.offset_frequency = params.offset_frequency;
if (typeof(params.sql) !== 'undefined') ret.squelch_level = parseInt(params.sql); if (typeof(params.sql) !== 'undefined') ret.squelch_level = parseInt(params.sql);
return ret; return ret;
}; };