diff options
-rw-r--r-- | gr-radar-mono/src/python/radar_mono.py | 3 | ||||
-rw-r--r-- | gr-sounder/src/python/sounder.py | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/gr-radar-mono/src/python/radar_mono.py b/gr-radar-mono/src/python/radar_mono.py index 0f2c2b252..830868f3c 100644 --- a/gr-radar-mono/src/python/radar_mono.py +++ b/gr-radar-mono/src/python/radar_mono.py @@ -69,8 +69,7 @@ class radar_tx: self._u = usrp.sink_s(fpga_filename='usrp_radar_mono.rbf') self._subdev_spec = (0,0); # FPGA code only implements side A self._subdev = usrp.selected_subdev(self._u, self._subdev_spec) - if hasattr(self._subdev, 'set_lo_offset'): - self._subdev.set_lo_offset(0) + self._subdev.set_lo_offset(0.0) self._ton_ticks = 0 self._tsw_ticks = 0 self._tlook_ticks = 0 diff --git a/gr-sounder/src/python/sounder.py b/gr-sounder/src/python/sounder.py index 84f000227..facb55918 100644 --- a/gr-sounder/src/python/sounder.py +++ b/gr-sounder/src/python/sounder.py @@ -60,10 +60,9 @@ class sounder_tx: if self._verbose: print "Using", self._subdev.name(), "for sounder transmitter." self.set_amplitude(ampl) + self._subdev.set_lo_offset(0.0) self._u.start() self._subdev.set_enable(True) - if hasattr(self._subdev, 'set_lo_offset'): - self._subdev.set_lo_offset(0) def tune(self, frequency): if self._verbose: |