diff --git a/canopen/node/remote.py b/canopen/node/remote.py index 07462422..7718721e 100644 --- a/canopen/node/remote.py +++ b/canopen/node/remote.py @@ -145,7 +145,7 @@ def __load_configuration_helper(self, index, subindex, name, value): logger.warning('[ERROR SETTING object {0:#06x}:{1:#06x}] {2}'.format(index, subindex, str(e))) raise - def load_configuration(self): + def load_configuration(self, from_od: bool = False): ''' Load the configuration of the node from the object dictionary.''' for obj in self.object_dictionary.values(): if isinstance(obj, ODRecord) or isinstance(obj, ODArray): @@ -154,4 +154,4 @@ def load_configuration(self): self.__load_configuration_helper(subobj.index, subobj.subindex, subobj.name, subobj.value) elif isinstance(obj, ODVariable) and obj.writable and (obj.value is not None): self.__load_configuration_helper(obj.index, None, obj.name, obj.value) - self.pdo.read() # reads the new configuration from the driver + self.pdo.read(from_od=from_od) # reads the new configuration from the driver