Commenting out a line causeing crash on HackRF

This commit is contained in:
Piotr Krysik 2018-06-02 12:27:58 +02:00 committed by GitHub
parent 2779e62094
commit ea44d98558
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ class wideband_scanner(gr.top_block):
# if no file name is given process data from rtl_sdr source
print "Args=", args
self.rtlsdr_source = osmosdr.source(args="numchan=" + str(1) + " " + args)
self.rtlsdr_source.set_min_output_buffer(int(sample_rate*rec_len))
#self.rtlsdr_source.set_min_output_buffer(int(sample_rate*rec_len)) #this line causes segfaults on HackRF
self.rtlsdr_source.set_sample_rate(sample_rate)
# capture half of GSM channel lower than channel center (-0.1MHz)