From 5aa62b1c63cee950642f060e32faeb1cbe64d6ea Mon Sep 17 00:00:00 2001 From: John Zhao Date: Thu, 12 Apr 2018 20:50:40 +0800 Subject: [PATCH] Change half duplex channel width --- src/internal/channels.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/channels.cc b/src/internal/channels.cc index 9950633..94c8e67 100644 --- a/src/internal/channels.cc +++ b/src/internal/channels.cc @@ -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(id & 0xFF), - static_cast(cmd)}; - if (XuControlQuery(CHANNEL_HALF_DUPLEX, uvc::XU_QUERY_SET, 3, data)) { + std::uint8_t data[20] = {static_cast(id & 0xFF), + static_cast(cmd)}; + 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;