Skip to content

Commit

Permalink
DeviceManager: Fix incorrect IR image returned from poll_frames()
Browse files Browse the repository at this point in the history
poll_frames() was always returning the first first IR camera for image both IR cameras
  • Loading branch information
valgur committed Nov 23, 2018
1 parent 6cf6cae commit 5170fe8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,11 @@ def poll_frames(self):
frames[serial] = {}
for stream in streams:
if (rs.stream.infrared == stream.stream_type()):
frame = frameset.get_infrared_frame(stream.stream_index())
key_ = (stream.stream_type(), stream.stream_index())
else:
frame = frameset.first_or_default(stream.stream_type())
key_ = stream.stream_type()
frame = frameset.first_or_default(stream.stream_type())
frames[serial][key_] = frame

return frames
Expand Down

0 comments on commit 5170fe8

Please sign in to comment.