Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix empty signal receivers
  • Loading branch information
ebroecker committed Jan 15, 2025
1 parent f9a35d7 commit 8f38f39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/canmatrix/formats/eds.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ def get_signals(parent_object, signal_receiver):
size = datatype_mapping[parent_object[sub].data_type][1]
factor = parent_object[sub].factor
unsigned = "UNSIGNED" in datatype_mapping[parent_object[sub].data_type][0]
signal = canmatrix.Signal(name = name, receivers=[signal_receiver], size=size, start_bit = position, factor=factor, is_signed = not unsigned)
signal = canmatrix.Signal(name = name, size=size, start_bit = position, factor=factor, is_signed = not unsigned)
signal.receivers = []
if len(signal_receiver) > 0:
signal.receivers.append(signal_receiver)
if parent_object[sub].min is not None:
signal.offset = parent_object[sub].min
position += size
Expand Down

0 comments on commit 8f38f39

Please sign in to comment.