Skip to content
Snippets Groups Projects
Commit 0edd7c93 authored by Beat Küng's avatar Beat Küng Committed by Lorenz Meier
Browse files

posix main: check for ROS argument

parent 22b47a84
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,11 @@ int main(int argc, char **argv)
PX4_DEBUG("instance: %i", instance);
if (myoptind < argc) {
data_path = argv[myoptind];
std::string optional_arg = argv[myoptind];
if (optional_arg.compare(0, 2, "__") != 0 || optional_arg.find(":=") == std::string::npos) {
data_path = optional_arg;
} // else: ROS argument (in the form __<name>:=<value>)
}
if (is_already_running(instance)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment