Skip to content
This repository
Browse code

python wrapper: Explicitly cast freenect_device_flags to int

Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
  • Loading branch information...
commit 2cfe5d9c4602d8a5cc921c1caa974795422bddcd 1 parent bac62d0
Drew Fisher zarvox authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  wrappers/python/freenect.pyx
2  wrappers/python/freenect.pyx
@@ -278,7 +278,7 @@ cpdef init():
278 278 # to both but haven't wrapped the python API for selecting subdevices yet.
279 279 # Also, we don't support audio in the python wrapper yet, so no sense claiming
280 280 # 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))
282 282 cdef CtxPtr ctx_out
283 283 ctx_out = CtxPtr()
284 284 ctx_out._ptr = ctx

0 comments on commit 2cfe5d9

Please sign in to comment.
Something went wrong with that request. Please try again.