Change half duplex channel width

This commit is contained in:
John Zhao 2018-04-12 20:50:40 +08:00
parent dcc72f17b3
commit 5aa62b1c63

View File

@ -343,9 +343,9 @@ void Channels::XuCamCtrlSet(Option option, std::int32_t value) const {
bool Channels::XuHalfDuplexSet(Option option, xu_cmd_t cmd) const {
int id = XuHalfDuplexId(option);
std::uint8_t data[3] = {static_cast<std::uint8_t>(id & 0xFF),
std::uint8_t data[20] = {static_cast<std::uint8_t>(id & 0xFF),
static_cast<std::uint8_t>(cmd)};
if (XuControlQuery(CHANNEL_HALF_DUPLEX, uvc::XU_QUERY_SET, 3, data)) {
if (XuControlQuery(CHANNEL_HALF_DUPLEX, uvc::XU_QUERY_SET, 20, data)) {
VLOG(2) << "XuHalfDuplexSet value (0x" << std::hex << std::uppercase << cmd
<< ") of " << option << " success";
return true;