Skip to content

Commit

Permalink
Handle USB speed when usb id is specified (#372)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Chataignon <alexandre.chataignon@robocc.com>
  • Loading branch information
xouillet and xouillet authored Aug 21, 2023
1 parent 54a8504 commit 032f69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion depthai_ros_driver/src/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void Camera::startDevice() {
} else if(!usb_id.empty() && info.name == usb_id) {
RCLCPP_INFO(this->get_logger(), "Connecting to the camera using USB ID: %s", usb_id.c_str());
if(info.state == X_LINK_UNBOOTED || info.state == X_LINK_BOOTLOADER) {
device = std::make_shared<dai::Device>(info);
device = std::make_shared<dai::Device>(info, speed);
camRunning = true;
} else if(info.state == X_LINK_BOOTED) {
throw std::runtime_error("Device is already booted in different process.");
Expand Down

0 comments on commit 032f69e

Please sign in to comment.