Skip to content

Commit

Permalink
PR #11378 from Nir-Az: Retry on "set_xu" when device is busy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Jan 31, 2023
2 parents 400db66 + 778733d commit 4b8f7f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linux/backend-v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,7 @@ namespace librealsense
static_cast<uint16_t>(size), const_cast<uint8_t *>(data)};
if(xioctl(_fd, UVCIOC_CTRL_QUERY, &q) < 0)
{
if (errno == EIO || errno == EAGAIN) // TODO: Log?
if (errno == EIO || errno == EAGAIN || errno == EBUSY)
return false;

throw linux_backend_exception("set_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed");
Expand All @@ -1569,7 +1569,7 @@ namespace librealsense
static_cast<uint16_t>(size), const_cast<uint8_t *>(data)};
if(xioctl(_fd, UVCIOC_CTRL_QUERY, &q) < 0)
{
if (errno == EIO || errno == EAGAIN || errno == EBUSY) // TODO: Log?
if (errno == EIO || errno == EAGAIN || errno == EBUSY)
return false;

throw linux_backend_exception("get_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed");
Expand Down

0 comments on commit 4b8f7f6

Please sign in to comment.