Skip to content

Commit

Permalink
Variable width rework (#97)
Browse files Browse the repository at this point in the history
* Variable width rework

Use variable_length=True arg only for MessageType12 and MessageType14 text fields

* Update messages.py
  • Loading branch information
luthir authored Dec 18, 2022
1 parent a6492eb commit 42fe43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyais/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ class MessageType14(Payload):
repeat = bit_field(2, int, default=0, signed=False)
mmsi = bit_field(30, int, from_converter=from_mmsi)
spare_1 = bit_field(2, bytes, default=b'')
text = bit_field(968, str, default='')
text = bit_field(968, str, default='', variable_length=True)


@attr.s(slots=True)
Expand Down

0 comments on commit 42fe43b

Please sign in to comment.