From 4e873a4cb19552f6903f69739f0a6818c8a5e263 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 12 Jan 2018 18:17:54 -0800 Subject: mpm: n310: Check all periphs for initialization status --- mpm/python/usrp_mpm/periph_manager/base.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mpm/python/usrp_mpm/periph_manager/base.py') 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() -- cgit v1.2.3