Change channel value
This commit is contained in:
parent
3673324079
commit
aed39f0942
|
@ -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(
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user