summaryrefslogtreecommitdiff
path: root/gr-pager/src/usrp_flex_band.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-pager/src/usrp_flex_band.py')
-rwxr-xr-xgr-pager/src/usrp_flex_band.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-pager/src/usrp_flex_band.py b/gr-pager/src/usrp_flex_band.py
index 7f494191d..2f272575a 100755
--- a/gr-pager/src/usrp_flex_band.py
+++ b/gr-pager/src/usrp_flex_band.py
@@ -53,6 +53,10 @@ class app_top_block(gr.top_block):
if options.log:
self.connect((bank, i), gr.file_sink(gr.sizeof_gr_complex, 'chan_'+'%3.3f'%(freq/1e6)+'.dat'))
+ def __del__(self):
+ # Avoid weak-ref error
+ del self.subdev
+
def main():
parser = OptionParser(option_class=eng_option)
parser.add_option("-f", "--frequency", type="eng_float", default=929.5e6,