aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorleommxj <leommxj@gmail.com>2017-09-10 00:49:06 +0800
committerPiotr Krysik <ptrkrysik@users.noreply.github.com>2017-09-11 10:38:40 +0200
commit1a35cb973fba5c770f7c14a769c0b1b9d329e764 (patch)
tree0e982e62526d068f404fcde6c6f9120ce1bd1734 /apps
parenta63ba0e4cc58f71d242f83981ef392398bc2eb92 (diff)
fix bug after commit 3dfa11b89e6a74e6857c11e3029b372c746d535f .change is_valid_arfcn grgsm(a,b) to one argument in grgsm_decode and grgsm_capture
Diffstat (limited to 'apps')
-rwxr-xr-xapps/grgsm_decode4
-rwxr-xr-xapps/helpers/grgsm_capture6
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: