Skip to content

Commit

Permalink
Merge pull request #316 from andlaus/fix_reserved_encoding
Browse files Browse the repository at this point in the history
Fix reserved encoding
  • Loading branch information
andlaus authored Jun 20, 2024
2 parents 02f7307 + ad826dd commit 4fb846f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion odxtools/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def odxraise(message: Optional[str] = None, error_type: Type[Exception] = OdxErr
else:
raise error_type(message)
elif message is not None:
logger.warn(message)
logger.warning(message)


def odxassert(condition: bool,
Expand Down
1 change: 1 addition & 0 deletions odxtools/parameters/reservedparameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def _encode_positioned_into_pdu(self, physical_value: Optional[ParameterValue],
encode_state: EncodeState) -> None:
encode_state.cursor_byte_position += (encode_state.cursor_bit_position + self.bit_length +
7) // 8
encode_state.cursor_bit_position = 0
encode_state.emplace_bytes(b'', self.short_name)

@override
Expand Down

0 comments on commit 4fb846f

Please sign in to comment.