From 4c55dd6ca001a3b8fb1b337e4cf4248cfffcb526 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 28 Aug 2024 18:54:41 +1000 Subject: [PATCH] Revert "fixed load_dsdl problem" this broke CI --- dronecan/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dronecan/__init__.py b/dronecan/__init__.py index f39f364..b5ed506 100644 --- a/dronecan/__init__.py +++ b/dronecan/__init__.py @@ -158,12 +158,10 @@ def load_dsdl(*paths, **args): for dtype in dtypes: namespace, _, typename = dtype.full_name.rpartition(".") root_namespace._path(namespace).__dict__[typename] = dtype - if dtype.full_name not in TYPENAMES: - TYPENAMES[dtype.full_name] = dtype + TYPENAMES[dtype.full_name] = dtype if dtype.default_dtid: - if (dtype.default_dtid, dtype.kind) not in DATATYPES: - DATATYPES[(dtype.default_dtid, dtype.kind)] = dtype + DATATYPES[(dtype.default_dtid, dtype.kind)] = dtype # Add the base CRC to each data type capable of being transmitted dtype.base_crc = dsdl.crc16_from_bytes(struct.pack("30} DTID: {: >4} base_crc:{: >8}"