mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
GCS_Console: Unify from print or println to printf.
This commit is contained in:
parent
81ef065c53
commit
474569c91b
@ -26,13 +26,13 @@ void flush_console_to_statustext() {
|
||||
void console_loopback() {
|
||||
int a = hal.console->available();
|
||||
if (a > 0) {
|
||||
hal.console->print("Console loopback:");
|
||||
hal.console->printf("Console loopback:");
|
||||
int r = hal.console->read();
|
||||
while (r > 0) {
|
||||
hal.console->write( (uint8_t) r );
|
||||
r = hal.console->read();
|
||||
}
|
||||
hal.console->println();
|
||||
hal.console->printf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user