Skip to content

Commit

Permalink
test formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
filbert14 committed Jan 30, 2023
1 parent 542403b commit 6396557
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/src/openni_color_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ main(int argc, char** argv)
int rr, gg, bb;
unsigned char radius = 442; // all colors!

pcl::console::parse_argument(argc, argv, "-device_id", device_id);
if(pcl::console::parse_argument(argc, argv, "-device_id", device_id) == -1 &&
argc > 1 &&
argv[1][0] != '-') device_id = argv[1];
if (pcl::console::parse_3x_arguments(argc, argv, "-rgb", rr, gg, bb, true) != -1) {
std::cout << "-rgb present" << std::endl;
int rad;
Expand Down
4 changes: 3 additions & 1 deletion apps/src/openni_fast_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ main(int argc, char** argv)
}

std::string device_id = "";
pcl::console::parse_argument(argc, argv, "-device_id", device_id);
if(pcl::console::parse_argument(argc, argv, "-device_id", device_id) == -1 &&
argc > 1 &&
argv[1][0] != '-') device_id = argv[1];
/////////////////////////////////////////////////////////////////////

pcl::OpenNIGrabber grabber(device_id);
Expand Down

0 comments on commit 6396557

Please sign in to comment.