mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 21:01:37 +08:00
posix console/scripts: treat lines starting with # as comment
This commit is contained in:
@@ -119,12 +119,10 @@ static void run_cmd(const vector<string> &appargs, bool exit_on_fail)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} else if (command.compare("help") == 0) {
|
} else if (command.compare("help") == 0) {
|
||||||
list_builtins();
|
list_builtins();
|
||||||
|
|
||||||
} else if (command.length() == 0) {
|
} else if (command.length() == 0 || command[0] == '#') {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user