Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove bogus sampling rate check #39

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/dvbs2-rec
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class DVBS2RecTopBlock(gr.top_block, Qt.QWidget):
self.gui_setup_complete = False

# Adjust the sample rate to an integer if necessary
if self.source == 'plutosdr' and not self.samp_rate.is_integer():
if self.source == 'plutosdr':
self.samp_rate = int(round(self.samp_rate))
gr.log.warn("An integer sample rate is required by the PlutoSDR. "
"Setting rate to {:d} samples/sec.".format(
Expand Down
2 changes: 1 addition & 1 deletion apps/dvbs2-rx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class DVBS2RxTopBlock(gr.top_block, Qt.QWidget):
self.gui_setup_complete = False

# Adjust the sample rate to an integer if necessary
if self.source == 'plutosdr' and not self.samp_rate.is_integer():
if self.source == 'plutosdr':
self.samp_rate = int(round(self.samp_rate))
gr.log.warn("An integer sample rate is required by the PlutoSDR. "
"Setting rate to {:d} samples/sec.".format(
Expand Down
2 changes: 1 addition & 1 deletion apps/dvbs2-tx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class dvbs2_tx(gr.top_block, Qt.QWidget):
self.uptime = datetime.now() - self.start_time

# Adjust the sample rate to an integer if necessary
if self.sink == 'plutosdr' and not self.samp_rate.is_integer():
if self.sink == 'plutosdr':
self.samp_rate = int(round(self.samp_rate))
gr.log.warn("An integer sample rate is required by the PlutoSDR. "
"Setting rate to {:d} samples/sec.".format(
Expand Down
Loading