vl53lxx driver: change I2C frequency to 400 kHz

This commit is contained in:
DanielePettenuzzo 2018-03-29 10:59:27 +02:00 committed by Beat Küng
parent 8a4e144e86
commit 9c1cbdfa11

View File

@ -200,7 +200,7 @@ private:
extern "C" __EXPORT int vl53lxx_main(int argc, char *argv[]);
VL53LXX::VL53LXX(uint8_t rotation, int bus, int address) :
I2C("VL53LXX", VL53LXX_DEVICE_PATH, bus, address, 100000),
I2C("VL53LXX", VL53LXX_DEVICE_PATH, bus, address, 400000), // 400 kHz only for Crazyflie (other boards use max 100 kHz)
_rotation(rotation),
_reports(nullptr),
_sensor_ok(false),