Skip to content

Commit

Permalink
Hotfix - fix typo TuneResult -> TuneRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
djanderson committed Nov 27, 2018
1 parent f40b7e4 commit 6bad9c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hardware/usrp_iface.py
Expand Up @@ -121,10 +121,11 @@ def tune_frequency(self, rf_freq, dsp_freq=0):
tune_result = self.usrp.set_rx_freq(rf_freq, dsp_freq)
logger.debug(tune_result)
else:
tune_request = uhd.types.TuneResult(rf_freq, dsp_freq)
tune_request = uhd.types.TuneRequest(rf_freq, dsp_freq)
tune_result = self.usrp.set_rx_freq(tune_request)
# FIXME: report actual values when available - see note below
msg = "rf_freq: {}, dsp_freq: {}"
logger.debug(msg.format(tune_result.rf_freq, tune_result.dsp_freq))
logger.debug(msg.format(rf_freq, dsp_freq))

# FIXME: uhd.types.TuneResult doesn't seem to be implemented
# as of uhd 3.13.1.0-rc1
Expand Down

0 comments on commit 6bad9c7

Please sign in to comment.