Skip to content

Commit

Permalink
Gaze Sensor: Correctly extract timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
papr committed Jun 7, 2019
1 parent 25e959d commit e6066bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndsi/sensor.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,6 @@ cdef class GazeSensor(Sensor):

while self.has_data:
data_msg = self.get_data(copy=False)
ts = py_struct.unpack("<d", data_msg[1])
ts, = py_struct.unpack("<d", data_msg[1])
x, y = py_struct.unpack("<ff", data_msg[2])
yield x, y, ts

0 comments on commit e6066bb

Please sign in to comment.