From 6bad9c7e5521d27a5d4496c122fa9b57e444f2a8 Mon Sep 17 00:00:00 2001 From: Douglas Anderson Date: Mon, 26 Nov 2018 18:54:03 -0700 Subject: [PATCH] Hotfix - fix typo TuneResult -> TuneRequest --- src/hardware/usrp_iface.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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