mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:33:33 +08:00
posix console: output newline before process_line
Before the output looked like this: pxh> logger statusINFO [logger] Running INFO [logger] Wrote 0.13 MiB (avg 0.72 KiB/s) INFO [logger] Since last status: dropouts: 0 (max len: 0.000 s), max used buffer: 7176 / 12288 B
This commit is contained in:
@@ -128,7 +128,7 @@ static void run_cmd(const vector<string> &appargs, bool exit_on_fail)
|
||||
// Do nothing
|
||||
|
||||
} else {
|
||||
cout << endl << "Invalid command: " << command << "\ntype 'help' for a list of commands" << endl;
|
||||
cout << "Invalid command: " << command << "\ntype 'help' for a list of commands" << endl;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -335,8 +335,8 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
process_line(mystr, false);
|
||||
cout << endl;
|
||||
process_line(mystr, false);
|
||||
mystr = "";
|
||||
buf_ptr_read = buf_ptr_write;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user