Skip to content

Commit

Permalink
Fix loading pb with invalid CV addressings from missing plugins
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jan 20, 2024
1 parent a0c1770 commit 27508b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mod/addressings.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,12 @@ def registerMappings(self, msg_callback, instances):
for actuator_uri, addrs in self.cv_addressings.items():
# pluginData = self._task_get_plugin_data(instance_id)
if not self.is_hw_cv_port(actuator_uri):
operational_mode = self._task_get_plugin_cv_port_op_mode(actuator_uri)
msg_callback("add_cv_port %s %s %s" % (actuator_uri, addrs['name'].replace(" ","_"), operational_mode))
try:
operational_mode = self._task_get_plugin_cv_port_op_mode(actuator_uri)
except KeyError:
pass
else:
msg_callback("add_cv_port %s %s %s" % (actuator_uri, addrs['name'].replace(" ","_"), operational_mode))

# HMI
group_mappings = [] #{} if self.addressing_pages else []
Expand Down

0 comments on commit 27508b3

Please sign in to comment.