mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 18:52:46 +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