Plane: fixed APM1 build

This commit is contained in:
Andrew Tridgell 2013-11-30 06:56:16 +11:00
parent 6b4a3ef98b
commit 1124e84ae0

View File

@ -26,7 +26,7 @@ static int32_t read_barometer(void)
static void init_sonar(void) static void init_sonar(void)
{ {
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 #if CONFIG_HAL_BOARD == HAL_BOARD_APM1
sonar.Init(&adc); sonar.Init(&apm1_adc);
#else #else
sonar.Init(NULL); sonar.Init(NULL);
#endif #endif