AP_HAL: fix unused variable
../../libraries/AP_HAL/examples/UART_test/UART_test.cpp:13:28: warning: ‘uarts’ defined but not used [-Wunused-variable] static AP_HAL::UARTDriver* uarts[] = { ^
This commit is contained in:
parent
cc626d2fc7
commit
1f072c4353
@ -10,12 +10,6 @@
|
||||
|
||||
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
||||
|
||||
static AP_HAL::UARTDriver* uarts[] = {
|
||||
hal.uartA, // console
|
||||
};
|
||||
#define NUM_UARTS (sizeof(uarts)/sizeof(uarts[0]))
|
||||
|
||||
|
||||
/*
|
||||
setup one UART at 57600
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user