Browse Source

AP_HAL_ChibiOS: fix warning when STDOUT is defined

../../libraries/AP_HAL_ChibiOS/UARTDriver.cpp:118:12: warning: 'int hal_console_vprintf(const char*, va_list)' defined but not used [-Wunused-function]
 static int hal_console_vprintf(const char *fmt, va_list arg)
            ^
mission-4.1.18
Francisco Ferreira 7 years ago committed by Andrew Tridgell
parent
commit
1b46104a98
  1. 4
      libraries/AP_HAL_ChibiOS/UARTDriver.cpp

4
libraries/AP_HAL_ChibiOS/UARTDriver.cpp

@ -110,7 +110,7 @@ void UARTDriver::thread_init(void)
#endif #endif
} }
#ifndef HAL_STDOUT_SERIAL
/* /*
hook to allow printf() to work on hal.console when we don't have a hook to allow printf() to work on hal.console when we don't have a
dedicated debug console dedicated debug console
@ -120,7 +120,7 @@ static int hal_console_vprintf(const char *fmt, va_list arg)
hal.console->vprintf(fmt, arg); hal.console->vprintf(fmt, arg);
return 1; // wrong length, but doesn't matter for what this is used for return 1; // wrong length, but doesn't matter for what this is used for
} }
#endif
void UARTDriver::begin(uint32_t b, uint16_t rxS, uint16_t txS) void UARTDriver::begin(uint32_t b, uint16_t rxS, uint16_t txS)
{ {

Loading…
Cancel
Save