diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-15 16:41:18 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-15 16:41:18 +0100 |
commit | 8d5225b9679c2820a57ea30ed6d4c46f5d6c9baa (patch) | |
tree | 902b395b7f193881c3b27e51856616c99eab80c8 /src/drivers | |
parent | 6f71173f8c7a13565ef90a8fec44187ba392f038 (diff) | |
download | px4-firmware-8d5225b9679c2820a57ea30ed6d4c46f5d6c9baa.tar.gz px4-firmware-8d5225b9679c2820a57ea30ed6d4c46f5d6c9baa.tar.bz2 px4-firmware-8d5225b9679c2820a57ea30ed6d4c46f5d6c9baa.zip |
FrSky: Be less chatty
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/frsky_telemetry/frsky_telemetry.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/drivers/frsky_telemetry/frsky_telemetry.c b/src/drivers/frsky_telemetry/frsky_telemetry.c index 6e0839043..bccdf1190 100644 --- a/src/drivers/frsky_telemetry/frsky_telemetry.c +++ b/src/drivers/frsky_telemetry/frsky_telemetry.c @@ -84,7 +84,7 @@ static int frsky_open_uart(const char *uart_name, struct termios *uart_config_or /* Back up the original UART configuration to restore it after exit */ int termios_state; if ((termios_state = tcgetattr(uart, uart_config_original)) < 0) { - warnx("ERROR get termios config %s: %d\n", uart_name, termios_state); + warnx("ERR: tcgetattr%s: %d\n", uart_name, termios_state); close(uart); return -1; } @@ -100,13 +100,13 @@ static int frsky_open_uart(const char *uart_name, struct termios *uart_config_or static const speed_t speed = B9600; if (cfsetispeed(&uart_config, speed) < 0 || cfsetospeed(&uart_config, speed) < 0) { - warnx("ERROR setting baudrate / termios config for %s: %d (cfsetispeed, cfsetospeed)\n", uart_name, termios_state); + warnx("ERR: %s: %d (cfsetispeed, cfsetospeed)\n", uart_name, termios_state); close(uart); return -1; } if ((termios_state = tcsetattr(uart, TCSANOW, &uart_config)) < 0) { - warnx("ERROR setting baudrate / termios config for %s (tcsetattr)\n", uart_name); + warnx("ERR: %s (tcsetattr)\n", uart_name); close(uart); return -1; } @@ -151,9 +151,6 @@ static int frsky_telemetry_thread_main(int argc, char *argv[]) } } - /* Print welcome text */ - warnx("FrSky telemetry interface starting..."); - /* Open UART */ struct termios uart_config_original; const int uart = frsky_open_uart(device_name, &uart_config_original); |