diff --git a/odxtools/dtcdop.py b/odxtools/dtcdop.py index 0fd6cc2a..2f0eb06d 100644 --- a/odxtools/dtcdop.py +++ b/odxtools/dtcdop.py @@ -120,6 +120,7 @@ def decode_from_pdu(self, decode_state: DecodeState) -> ParameterValue: return DiagnosticTroubleCode( trouble_code=trouble_code, odx_id=cast(OdxLinkId, None), + oid=None, short_name=f'DTC_{trouble_code:06x}', long_name=None, description=None, diff --git a/odxtools/dyndefinedspec.py b/odxtools/dyndefinedspec.py index e1e34637..d32b7077 100644 --- a/odxtools/dyndefinedspec.py +++ b/odxtools/dyndefinedspec.py @@ -163,8 +163,6 @@ def from_et(et_element: ElementTree.Element, def _build_odxlinks(self) -> Dict[OdxLinkId, Any]: result: Dict[OdxLinkId, Any] = {} - result.update(self._build_odxlinks()) - for didmi in self.dyn_id_def_mode_infos: result.update(didmi._build_odxlinks())