diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-01-12 18:17:54 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-01-12 18:17:54 -0800 |
commit | 4e873a4cb19552f6903f69739f0a6818c8a5e263 (patch) | |
tree | 8b8f4b402acb3bf944ec33361ff1141aa8702fb9 /mpm/python/usrp_mpm/periph_manager/base.py | |
parent | deccab5a1b90df299b7b194bfef9da046f8f319b (diff) | |
download | uhd-4e873a4cb19552f6903f69739f0a6818c8a5e263.tar.gz uhd-4e873a4cb19552f6903f69739f0a6818c8a5e263.tar.bz2 uhd-4e873a4cb19552f6903f69739f0a6818c8a5e263.zip |
mpm: n310: Check all periphs for initialization status
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/base.py')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index 4db74e8dd..265d286e5 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -334,6 +334,10 @@ class PeriphManagerBase(object): This must be safe to call multiple times. The default behaviour is to call deinit() on all the daughterboards. """ + if not self._device_initialized: + self.log.error( + "Cannot run deinit(), device was never fully initialized!") + return self.log.trace("Mboard deinit() called.") for dboard in self.dboards: dboard.deinit() |