summaryrefslogtreecommitdiff
path: root/gsm-tvoid/src/python
diff options
context:
space:
mode:
authortvoid <tvoid@lesaige.com>2008-04-07 22:36:31 -0600
committertvoid <tvoid@lesaige.com>2008-04-07 22:36:31 -0600
commitf5881fc49a1d8f7867852c787f55cdb90ac06278 (patch)
treee88ab2b8716f097409698f2d79876cb4dcbe6996 /gsm-tvoid/src/python
parent57ad579c4c247125be2f3bd430734902a27cc869 (diff)
working tune delay test
Diffstat (limited to 'gsm-tvoid/src/python')
-rwxr-xr-xgsm-tvoid/src/python/gsm_scan.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/gsm-tvoid/src/python/gsm_scan.py b/gsm-tvoid/src/python/gsm_scan.py
index cc3c2d6..51ff92e 100755
--- a/gsm-tvoid/src/python/gsm_scan.py
+++ b/gsm-tvoid/src/python/gsm_scan.py
@@ -36,16 +36,16 @@ class burst_callback(gr.feval_ll):
try:
#print "burst_callback: ", x, "\n";
if gsm.BURST_CB_ADJ_OFFSET == x:
+ return 0
#TODO: rework so this will work on file input
last_offset = self.fg.burst.last_freq_offset()
- if last_offset < 200.0:
- return 0
-
- self.fg.offset -= last_offset
- print "burst_callback: ADJ_OFFSET:", last_offset, " ARFCN: ", self.fg.arfcn, "\n";
- self.fg.set_channel(self.fg.arfcn)
+ if 20000.0 > abs(last_offset) > 200.0:
+ self.fg.offset -= last_offset
+ print "burst_callback: ADJ_OFFSET:", last_offset, " ARFCN: ", self.fg.arfcn, "\n";
+ self.fg.set_channel(self.fg.arfcn)
elif gsm.BURST_CB_TUNE == x:
+ print "burst_callback: BURST_CB_TUNE: ARFCN: ", self.fg.burst.next_arfcn, "\n";
self.fg.set_channel(self.fg.burst.next_arfcn)
return 0
personal git repositories of Harald Welte. Your mileage may vary