Plane: fixed APM1 build

This commit is contained in:
Andrew Tridgell 2013-11-30 06:56:16 +11:00
parent 6b4a3ef98b
commit 1124e84ae0
1 changed files with 1 additions and 1 deletions

View File

@ -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