Commit 5b84731e authored by Michael Büsch's avatar Michael Büsch

coreserver: Add message for successful hwmod loading

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent bbaa7ed0
......@@ -603,8 +603,9 @@ class AwlSimServer(object):
self.__updateProjectFile()
def loadHardwareModule(self, hwmodDesc):
printInfo("Loading hardware module '%s'..." %\
hwmodDesc.getModuleName())
hwmodName = hwmodDesc.getModuleName()
printInfo("Loading hardware module '%s'..." % hwmodName)
hwClass = self.__sim.loadHardwareModule(hwmodDesc.getModuleName())
self.__sim.registerHardwareClass(hwClass = hwClass,
parameters = hwmodDesc.getParameters())
......@@ -612,6 +613,8 @@ class AwlSimServer(object):
self.loadedHwModules.append(hwmodDesc)
self.__updateProjectFile()
printInfo("Hardware module '%s' loaded." % hwmodName)
def loadLibraryBlock(self, libSelection):
self.setRunState(self.STATE_STOP)
self.__sim.loadLibraryBlock(libSelection)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment