Skip to content

Commit

Permalink
Merge pull request #930 from argilo/integer-bins
Browse files Browse the repository at this point in the history
Ensure number of requested bins is an integer
  • Loading branch information
darksidelemm authored Nov 7, 2024
2 parents 50524fa + 802f1fd commit 40ab53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_rx/autorx/sdr_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ def get_power_spectrum(

_timeout_cmd = f"{timeout_cmd()} {integration_time+10} "
_center_freq = (frequency_start + frequency_stop) / 2
_bins = ((frequency_stop - frequency_start) / step) + 1 # 3001 for 2.4MHz @ 800Hz bins/steps
_bins = int((frequency_stop - frequency_start) / step) + 1 # 3001 for 2.4MHz @ 800Hz bins/steps
_ssrc = f"{round(_center_freq / 1000)}03"

_powers_cmd = (
Expand Down

0 comments on commit 40ab53b

Please sign in to comment.