diff options
Diffstat (limited to 'gr-pager/src')
-rwxr-xr-x | gr-pager/src/usrp_flex.py | 5 | ||||
-rwxr-xr-x | gr-pager/src/usrp_flex_all.py | 5 | ||||
-rwxr-xr-x | gr-pager/src/usrp_flex_band.py | 5 |
3 files changed, 6 insertions, 9 deletions
diff --git a/gr-pager/src/usrp_flex.py b/gr-pager/src/usrp_flex.py index 766ed483c..31d6d1dce 100755 --- a/gr-pager/src/usrp_flex.py +++ b/gr-pager/src/usrp_flex.py @@ -160,10 +160,9 @@ def main(): # Flow graph emits pages into message queue queue = gr.msg_queue() tb = app_top_block(options, queue) - r = gr.runtime(tb) try: - r.start() + tb.start() while 1: if not queue.empty_p(): msg = queue.delete_head() # Blocking read @@ -181,7 +180,7 @@ def main(): time.sleep(1) except KeyboardInterrupt: - r.stop() + tb.stop() if __name__ == "__main__": main() diff --git a/gr-pager/src/usrp_flex_all.py b/gr-pager/src/usrp_flex_all.py index 8e29eeee6..daee3532c 100755 --- a/gr-pager/src/usrp_flex_all.py +++ b/gr-pager/src/usrp_flex_all.py @@ -76,10 +76,9 @@ def main(): queue = gr.msg_queue() tb = app_top_block(options, queue) - r = gr.runtime(tb) try: - r.start() + tb.start() while 1: if not queue.empty_p(): msg = queue.delete_head() # Blocking read @@ -96,7 +95,7 @@ def main(): time.sleep(1) except KeyboardInterrupt: - r.stop() + tb.stop() if __name__ == "__main__": main() diff --git a/gr-pager/src/usrp_flex_band.py b/gr-pager/src/usrp_flex_band.py index 69b0dbf80..7f494191d 100755 --- a/gr-pager/src/usrp_flex_band.py +++ b/gr-pager/src/usrp_flex_band.py @@ -76,10 +76,9 @@ def main(): queue = gr.msg_queue() tb = app_top_block(options, queue) - r = gr.runtime(tb) try: - r.start() + tb.start() while 1: if not queue.empty_p(): msg = queue.delete_head() # Blocking read @@ -96,7 +95,7 @@ def main(): time.sleep(1) except KeyboardInterrupt: - r.stop() + tb.stop() if __name__ == "__main__": main() |