diff options
author | leommxj <leommxj@gmail.com> | 2017-09-10 00:49:06 +0800 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@users.noreply.github.com> | 2017-09-11 10:38:40 +0200 |
commit | 1a35cb973fba5c770f7c14a769c0b1b9d329e764 (patch) | |
tree | 0e982e62526d068f404fcde6c6f9120ce1bd1734 | |
parent | a63ba0e4cc58f71d242f83981ef392398bc2eb92 (diff) |
fix bug after commit 3dfa11b89e6a74e6857c11e3029b372c746d535f .change is_valid_arfcn grgsm(a,b) to one argument in grgsm_decode and grgsm_capture
-rwxr-xr-x | apps/grgsm_decode | 4 | ||||
-rwxr-xr-x | apps/helpers/grgsm_capture | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/grgsm_decode b/apps/grgsm_decode index 222d67e..66ecae2 100755 --- a/apps/grgsm_decode +++ b/apps/grgsm_decode @@ -350,7 +350,7 @@ if __name__ == '__main__': if options.band: if options.band not in grgsm.arfcn.get_bands(): parser.error("Invalid GSM band\n") - elif not grgsm.arfcn.is_valid_arfcn(options.arfcn, options.band): + elif not grgsm.arfcn.is_valid_arfcn(options.arfcn): parser.error("ARFCN is not valid in the specified band\n") else: arfcn = options.arfcn @@ -358,7 +358,7 @@ if __name__ == '__main__': else: arfcn = options.arfcn for band in grgsm.arfcn.get_bands(): - if grgsm.arfcn.is_valid_arfcn(arfcn, band): + if grgsm.arfcn.is_valid_arfcn(arfcn): fc = grgsm.arfcn.arfcn2downlink(arfcn, band) break elif options.fc: diff --git a/apps/helpers/grgsm_capture b/apps/helpers/grgsm_capture index add42d3..d14d1e8 100755 --- a/apps/helpers/grgsm_capture +++ b/apps/helpers/grgsm_capture @@ -142,7 +142,7 @@ class grgsm_capture(gr.top_block): new_freq = grgsm.arfcn.arfcn2downlink(self.arfcn, self.band) else: for band in grgsm.arfcn.get_bands(): - if grgsm.arfcn.is_valid_arfcn(arfcn, band): + if grgsm.arfcn.is_valid_arfcn(arfcn): new_freq = grgsm.arfcn.arfcn2downlink(arfcn, band) break self.set_fc(new_freq) @@ -232,7 +232,7 @@ if __name__ == '__main__': if options.band: if options.band not in grgsm.arfcn.get_bands(): parser.error("Invalid GSM band\n") - elif not grgsm.arfcn.is_valid_arfcn(options.arfcn, options.band): + elif not grgsm.arfcn.is_valid_arfcn(options.arfcn): parser.error("ARFCN is not valid in the specified band\n") else: arfcn = options.arfcn @@ -240,7 +240,7 @@ if __name__ == '__main__': else: arfcn = options.arfcn for band in grgsm.arfcn.get_bands(): - if grgsm.arfcn.is_valid_arfcn(arfcn, band): + if grgsm.arfcn.is_valid_arfcn(arfcn): fc = grgsm.arfcn.arfcn2downlink(arfcn, band) break elif options.fc: |