diff --git a/depthai_ros_driver/src/camera.cpp b/depthai_ros_driver/src/camera.cpp index f1a76c19..e9116ac1 100644 --- a/depthai_ros_driver/src/camera.cpp +++ b/depthai_ros_driver/src/camera.cpp @@ -199,8 +199,8 @@ void Camera::startDevice() { try { if(mxid.empty() && ip.empty() && usb_id.empty()) { RCLCPP_INFO(get_logger(), "No ip/mxid 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(std::get<1>(info), speed); camRunning = true; } else {