diff --git a/src/internal/channels.cc b/src/internal/channels.cc index de8f255..b8841db 100644 --- a/src/internal/channels.cc +++ b/src/internal/channels.cc @@ -839,7 +839,7 @@ bool Channels::PuControlQuery( bool Channels::XuControlRange( channel_t channel, int32_t *min, int32_t *max, int32_t *def) const { - return XuControlRange(mynteye_xu, channel >> 8, min, max, def); + return XuControlRange(mynteye_xu, channel, min, max, def); } bool Channels::XuControlRange( @@ -852,7 +852,7 @@ bool Channels::XuControlRange( bool Channels::XuControlQuery( channel_t channel, uvc::xu_query query, uint16_t size, uint8_t *data) const { - return XuControlQuery(mynteye_xu, channel >> 8, query, size, data); + return XuControlQuery(mynteye_xu, channel, query, size, data); } bool Channels::XuControlQuery( diff --git a/src/internal/channels.h b/src/internal/channels.h index 9feaf32..d4e2d78 100644 --- a/src/internal/channels.h +++ b/src/internal/channels.h @@ -24,11 +24,11 @@ struct xu; class MYNTEYE_API Channels { public: typedef enum Channel { - CHANNEL_CAM_CTRL = 0x0100, - CHANNEL_HALF_DUPLEX = 0x0200, - CHANNEL_IMU_WRITE = 0x0300, - CHANNEL_IMU_READ = 0x0400, - CHANNEL_FILE = 0x0500, + CHANNEL_CAM_CTRL = 1, + CHANNEL_HALF_DUPLEX = 2, + CHANNEL_IMU_WRITE = 3, + CHANNEL_IMU_READ = 4, + CHANNEL_FILE = 5, CHANNEL_LAST } channel_t;