From 1124e84ae01e2d6a909ee2706b633a0c61b6c168 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 30 Nov 2013 06:56:16 +1100 Subject: [PATCH] Plane: fixed APM1 build --- ArduPlane/sensors.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/sensors.pde b/ArduPlane/sensors.pde index 6cb289316b..6ac213518c 100644 --- a/ArduPlane/sensors.pde +++ b/ArduPlane/sensors.pde @@ -26,7 +26,7 @@ static int32_t read_barometer(void) static void init_sonar(void) { #if CONFIG_HAL_BOARD == HAL_BOARD_APM1 - sonar.Init(&adc); + sonar.Init(&apm1_adc); #else sonar.Init(NULL); #endif