Browse Source

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[] = {
                            ^
master
Lucas De Marchi 9 years ago
parent
commit
1f072c4353
  1. 6
      libraries/AP_HAL/examples/UART_test/UART_test.cpp

6
libraries/AP_HAL/examples/UART_test/UART_test.cpp

@ -10,12 +10,6 @@ @@ -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…
Cancel
Save