Skip to content

Commit 091a338

Browse files
Merge pull request #18 from qualisys/multple_image_bug
When parsing image packet read image data with image size.
2 parents bbbaec5 + bcf53ee commit 091a338

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qtm/packet.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ def get_image(self, component_info=None, data=None, component_position=None):
506506
component_position, image_info = QRTPacket._get_exact(
507507
RTImage, data, component_position
508508
)
509-
append_components((image_info, data[component_position:-1]))
509+
append_components((image_info, data[component_position:component_position + image_info.image_size]))
510+
component_position += image_info.image_size
510511
return components
511512

512513
@ComponentGetter(QRTComponentType.Component3d, RT3DComponent)

0 commit comments

Comments
 (0)