mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
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:
parent
62a4f08e12
commit
1b46104a98
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user