diff options
| author | Martin Braun <martin.braun@ettus.com> | 2019-11-19 13:47:44 -0800 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 12:21:34 -0800 | 
| commit | c481e320262e1b333673c8628f8046134c0605d1 (patch) | |
| tree | 4d429fd0731e3fff8dc832d79a0fbfa47185eb76 /mpm/python | |
| parent | 9ede696528a57c3a810b7897d7d40abb21d89b24 (diff) | |
| download | uhd-c481e320262e1b333673c8628f8046134c0605d1.tar.gz uhd-c481e320262e1b333673c8628f8046134c0605d1.tar.bz2 uhd-c481e320262e1b333673c8628f8046134c0605d1.zip | |
mpm: e31x: Fix setting of clock source
The clock source on E310 is always internal. This patch removes the
variables regarding the clock source (since they are superfluous). This
fixes a bug where self._clock_source on the e31x class would never get
initialized.
Diffstat (limited to 'mpm/python')
| -rw-r--r-- | mpm/python/usrp_mpm/periph_manager/e31x.py | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/mpm/python/usrp_mpm/periph_manager/e31x.py b/mpm/python/usrp_mpm/periph_manager/e31x.py index c729ceef1..e8f775537 100644 --- a/mpm/python/usrp_mpm/periph_manager/e31x.py +++ b/mpm/python/usrp_mpm/periph_manager/e31x.py @@ -147,7 +147,6 @@ class e31x(ZynqComponents, PeriphManagerBase):          """          Does partial initialization which loads low power idle image          """ -        self._clock_source = None          self._time_source = None          self._gpsd = None          self.dboards = [] @@ -224,7 +223,6 @@ class e31x(ZynqComponents, PeriphManagerBase):          if not self._device_initialized:              # Don't try and figure out what's going on. Just give up.              return -        self._clock_source = None          self._time_source = None          self.dboard = self.dboards[E310_DBOARD_SLOT_IDX]          try: @@ -284,7 +282,6 @@ class e31x(ZynqComponents, PeriphManagerBase):                  "No dboards found, skipping setting clock and time source "                  "configuration."              ) -            self._clock_source = E310_DEFAULT_CLOCK_SOURCE              self._time_source = E310_DEFAULT_TIME_SOURCE          else:              self.set_clock_source( @@ -538,7 +535,7 @@ class e31x(ZynqComponents, PeriphManagerBase):      def get_clock_source(self):          " Returns the currently selected clock source " -        return self._clock_source +        return E310_DEFAULT_CLOCK_SOURCE      def set_clock_source(self, *args):          """ | 
