Skip to content

Commit

Permalink
fix missing property in parameter structure
Browse files Browse the repository at this point in the history
  • Loading branch information
lmbsog0 committed Dec 9, 2022
1 parent cafe678 commit e61b3f9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def __init__(self,
interleaved_mode=False,
max_bs=255,
min_st=255,
queue_size=16,
cto_queue_size=16,
event_queue_size=16,
max_cto=8,
max_dto=8,
checksum_type='XCP_CRC_32',
Expand All @@ -146,6 +147,7 @@ def __init__(self,
self._channel_rx_pdu = channel_rx_pdu_ref
self._channel_tx_pdu = channel_tx_pdu_ref
self._default_daq_dto_pdu_mapping = default_daq_dto_pdu_mapping
self._event_queue_size = event_queue_size
super(DefaultConfig, self).__init__(configurations=[
{
"communication": {
Expand Down Expand Up @@ -222,7 +224,8 @@ def __init__(self,
"interleaved_mode": interleaved_mode,
"max_bs": max_bs,
"min_st": min_st,
"queue_size": queue_size,
"cto_queue_size": cto_queue_size,
"event_queue_size": event_queue_size,
"max_cto": max_cto,
"max_dto": max_dto,
"checksum_type": checksum_type,
Expand Down Expand Up @@ -254,6 +257,10 @@ def channel_tx_pdu(self):
def default_daq_dto_pdu_mapping(self):
return self._default_daq_dto_pdu_mapping

@property
def event_queue_size(self):
return self._event_queue_size


if __name__ == '__main__':
a = DefaultConfig()
Expand Down

0 comments on commit e61b3f9

Please sign in to comment.