Skip to content
Snippets Groups Projects
Commit 9c1cbdfa authored by DanielePettenuzzo's avatar DanielePettenuzzo Committed by Beat Küng
Browse files

vl53lxx driver: change I2C frequency to 400 kHz

parent 8a4e144e
No related branches found
No related tags found
No related merge requests found
......@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment