mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 14:37:36 +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) {
|
||||
list_builtins();
|
||||
|
||||
} else if (command.length() == 0) {
|
||||
} else if (command.length() == 0 || command[0] == '#') {
|
||||
// Do nothing
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user