diff --git a/odxtools/dataobjectproperty.py b/odxtools/dataobjectproperty.py index d52633a6..706e661c 100644 --- a/odxtools/dataobjectproperty.py +++ b/odxtools/dataobjectproperty.py @@ -72,7 +72,7 @@ def from_et(et_element: ElementTree.Element, physical_constr = None if (physical_constr_elem := et_element.find("PHYS-CONSTR")) is not None: physical_constr = InternalConstr.from_et( - physical_constr_elem, internal_type=diag_coded_type.base_data_type) + physical_constr_elem, internal_type=physical_type.base_data_type) return DataObjectProperty( diag_coded_type=diag_coded_type,