Skip to content

Commit

Permalink
Merge pull request #18 from qualisys/multple_image_bug
Browse files Browse the repository at this point in the history
When parsing image packet read image data with image size.
  • Loading branch information
EmilRosenquist authored Apr 13, 2021
2 parents bbbaec5 + bcf53ee commit 091a338
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qtm/packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ def get_image(self, component_info=None, data=None, component_position=None):
component_position, image_info = QRTPacket._get_exact(
RTImage, data, component_position
)
append_components((image_info, data[component_position:-1]))
append_components((image_info, data[component_position:component_position + image_info.image_size]))
component_position += image_info.image_size
return components

@ComponentGetter(QRTComponentType.Component3d, RT3DComponent)
Expand Down

0 comments on commit 091a338

Please sign in to comment.