Skip to content

Commit

Permalink
Merge pull request #353 from ngoan1608/main
Browse files Browse the repository at this point in the history
fix MinMaxLengthType error when encoding bytearray value
  • Loading branch information
andlaus authored Oct 18, 2024
2 parents b1e3d6c + 6ce793d commit 4e35843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odxtools/minmaxlengthtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __termination_sequence(self) -> bytes:
@override
def encode_into_pdu(self, internal_value: AtomicOdxType, encode_state: EncodeState) -> None:

if not isinstance(internal_value, (bytes, str)):
if not isinstance(internal_value, (bytes, str, bytearray)):
odxraise("MinMaxLengthType is currently only implemented for strings and byte arrays",
EncodeError)

Expand Down

0 comments on commit 4e35843

Please sign in to comment.