From be53c5ad4d61bf03752cce997037fb8807f8f349 Mon Sep 17 00:00:00 2001 From: Arnaud Taffanel Date: Wed, 4 Oct 2017 15:47:15 +0200 Subject: [PATCH] ZRanger: Fix zrangerGetRange function name in sensors_bosch (#253) --- src/hal/interface/sensors_bosch.h | 2 +- src/hal/src/sensors_bosch.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);