mirror of https://github.com/ArduPilot/ardupilot
Plane: fixed APM1 build
This commit is contained in:
parent
6b4a3ef98b
commit
1124e84ae0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue