diff --git a/swagger/sdrangel/examples/Readme.md b/swagger/sdrangel/examples/Readme.md index c7755af03..db7b1c419 100644 --- a/swagger/sdrangel/examples/Readme.md +++ b/swagger/sdrangel/examples/Readme.md @@ -183,6 +183,8 @@ Simple AM and NFM scanner with multiple equally spaced channels. Stops whenever Requires numpy +☞ Try to first run with the `-m` (mock) option to see what the scanner parameters will be. In particular pay attention to the computed sample rate that should be within range for your hardware. For devices with fixed or discrete rates make sure the computed sample rate does not exceed the unique device sample rate or the highest possible sample rate. + In addition to some APIs being used in other script it uses: - Get channels reports: diff --git a/swagger/sdrangel/examples/scanner.py b/swagger/sdrangel/examples/scanner.py index 38ae542ca..d26b8f2d7 100755 --- a/swagger/sdrangel/examples/scanner.py +++ b/swagger/sdrangel/examples/scanner.py @@ -198,7 +198,7 @@ def checkScanning(fc, options): if reportKey in channel["report"]: if channel["report"][reportKey]["squelch"] == 1: f_channel = channel["deltaFrequency"]+fc - if f_channel not in options.excl_flist: + if round(f_channel) not in options.excl_flist: print("Stopped at %d Hz" % f_channel) return False # stop scanning return True # continue scanning