mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-06 23:15:19 +00:00
check if new value is undefined
This commit is contained in:
parent
db98590985
commit
7f3071336b
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ Demodulator.prototype.emit = function(event, params) {
|
|||
};
|
||||
|
||||
Demodulator.prototype.set_offset_frequency = function(to_what) {
|
||||
if (to_what > bandwidth / 2 || to_what < -bandwidth / 2) return;
|
||||
if (typeof(to_what) == 'undefined' || to_what > bandwidth / 2 || to_what < -bandwidth / 2) return;
|
||||
to_what = Math.round(to_what);
|
||||
if (this.offset_frequency === to_what) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue