From 1a35cb973fba5c770f7c14a769c0b1b9d329e764 Mon Sep 17 00:00:00 2001 From: leommxj Date: Sun, 10 Sep 2017 00:49:06 +0800 Subject: fix bug after commit 3dfa11b89e6a74e6857c11e3029b372c746d535f .change is_valid_arfcn grgsm(a,b) to one argument in grgsm_decode and grgsm_capture --- apps/grgsm_decode | 4 ++-- 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: -- cgit v1.2.3