diff --git a/src/hal/interface/sensors_bosch.h b/src/hal/interface/sensors_bosch.h index ccdd5675e7..342bc4f704 100644 --- a/src/hal/interface/sensors_bosch.h +++ b/src/hal/interface/sensors_bosch.h @@ -33,7 +33,7 @@ #include "sensors.h" #include "imu.h" -#include "vl53l0x.h" +#include "zranger.h" #include "FreeRTOS.h" #include "semphr.h" diff --git a/src/hal/src/sensors_bosch.c b/src/hal/src/sensors_bosch.c index e752db5c91..94a342f83c 100644 --- a/src/hal/src/sensors_bosch.c +++ b/src/hal/src/sensors_bosch.c @@ -761,7 +761,7 @@ void sensorsAcquire(sensorData_t *sensors, const uint32_t tick) sensorsReadAcc(&sensors->acc); sensorsReadMag(&sensors->mag); sensorsReadBaro(&sensors->baro); - vl53l0xReadRange(&sensors->zrange, tick); + zRangerReadRange(&sensors->zrange, tick); #ifdef LOG_SEC_IMU sensorsReadGyroSec(&sensors->gyroSec); sensorsReadAccSec(&sensors->accSec);