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)
            ^
This commit is contained in:
Francisco Ferreira 2018-08-11 17:40:23 +01:00 committed by Andrew Tridgell
parent 62a4f08e12
commit 1b46104a98

View File

@ -110,7 +110,7 @@ void UARTDriver::thread_init(void)
#endif
}
#ifndef HAL_STDOUT_SERIAL
/*
hook to allow printf() to work on hal.console when we don't have a
dedicated debug console
@ -120,7 +120,7 @@ static int hal_console_vprintf(const char *fmt, va_list arg)
hal.console->vprintf(fmt, arg);
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)
{