Skip to content

Commit 176b4f5

Browse files
committed
start implementing TX PDOs
1 parent b8d2156 commit 176b4f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/canmatrix/formats/eds.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ def load(f, **options): # type: (typing.IO, **typing.Any) -> canmatrix.CanMatri
252252
# for sig in signals:
253253
# frame.add_signal(sig)
254254

255-
for comm_index, map_index in zip(range(0x1800, 0x1808), range(0x1A00, 0x1A08)):
255+
for comm_index in range(0x1800, 0x1808):
256+
map_index = comm_index + 0x200
256257
if comm_index not in od or map_index not in od:
257258
continue
258259

@@ -290,6 +291,7 @@ def load(f, **options): # type: (typing.IO, **typing.Any) -> canmatrix.CanMatri
290291
mapped_obj = od.get_variable(obj_index, obj_subindex)
291292
if not mapped_obj:
292293
#print(f" Warning: Could not find object at Index: 0x{obj_index:04X}, Subindex: {obj_subindex}.")
294+
current_bit_start += bit_length
293295
continue
294296
signal_name = name_cleanup(mapped_obj.name)
295297
new_sig = canmatrix.Signal(signal_name, size=bit_length, start_bit=current_bit_start)

0 commit comments

Comments
 (0)