Skip to content

Commit

Permalink
fix lint findings
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-ben-ali committed Aug 29, 2024
1 parent cb68516 commit e7381be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions odxtools/multiplexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ def encode_into_pdu(self, physical_value: ParameterValue, encode_state: EncodeSt

odxassert(len(applicable_cases) == 1)
mux_case = applicable_cases[0]
if self.default_case and mux_case == self.default_case:
key_value = 0
else:
if isinstance(mux_case, MultiplexerCase):
key_value, _ = self._get_case_limits(mux_case)
else:
key_value = 0
elif isinstance(case_spec, int):
applicable_cases = []
for x in self.cases:
Expand Down

0 comments on commit e7381be

Please sign in to comment.