Skip to main content
ritzeng
Associate II
March 24, 2021
Question

There is a compile error in your VL32L1 code

vl53l1_class.cpp, Line 3864ff

//Fix for some STM32 boards

//Reinitialize th i2c bus with the default parameters

#ifdef ARDUINO_ARCH_STM32

if (status) {

dev_i2c->end();

// the method end() doesn't exist, you meant: dev_i2c->endTransmission(false); ?

dev_i2c->begin();

}

#endif

This topic has been closed for replies.

1 reply

Julien NGUYEN
ST Employee
August 23, 2021

Hi Ritzeng

Since we have several sources of VL53L1 Arduino C++ libraries. Could you please precise which lib are you using and also send me the link to download the lib to check for you. Thanks. Julien

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.