diff --git a/src/hardware/usrp_iface.py b/src/hardware/usrp_iface.py index 250dfbe1..ce717ed9 100644 --- a/src/hardware/usrp_iface.py +++ b/src/hardware/usrp_iface.py @@ -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