Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam committed Oct 14, 2024
1 parent 7097bcb commit 784bc92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions depthai_ros_driver/src/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ void Camera::startDevice() {
auto usb_id = ph->getParam<std::string>("i_usb_port_id");
if(mxid.empty() && ip.empty() && usb_id.empty()) {
ROS_INFO("No ip/mxid/usb_id specified, connecting to the next available device.");
auto info = dai::Device::getAnyAvailableDevice();
auto speed = ph->getUSBSpeed();
auto info = dai::Device::getAnyAvailableDevice();
auto speed = ph->getUSBSpeed();
device = std::make_shared<dai::Device>(std::get<1>(info), speed);
camRunning = true;
} else {
Expand Down

0 comments on commit 784bc92

Please sign in to comment.