Skip to content

Commit

Permalink
Revert "fixed load_dsdl problem"
Browse files Browse the repository at this point in the history
this broke CI
  • Loading branch information
tridge committed Aug 28, 2024
1 parent 72a003d commit 4c55dd6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dronecan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<Q", dtype.get_data_type_signature()))
logger.debug("DSDL Load {: >30} DTID: {: >4} base_crc:{: >8}"
Expand Down

0 comments on commit 4c55dd6

Please sign in to comment.