Skip to content

Commit 2cfe5d9

Browse files
committed
python wrapper: Explicitly cast freenect_device_flags to int
Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
1 parent bac62d0 commit 2cfe5d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrappers/python/freenect.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ cpdef init():
278278
# to both but haven't wrapped the python API for selecting subdevices yet.
279279
# Also, we don't support audio in the python wrapper yet, so no sense claiming
280280
# the device.
281-
freenect_select_subdevices(ctx, FREENECT_DEVICE_MOTOR | FREENECT_DEVICE_CAMERA)
281+
freenect_select_subdevices(ctx, int(FREENECT_DEVICE_MOTOR | FREENECT_DEVICE_CAMERA))
282282
cdef CtxPtr ctx_out
283283
ctx_out = CtxPtr()
284284
ctx_out._ptr = ctx

0 commit comments

Comments
 (0)