revk / ESP32-VL53L0X

VL53L0X (laser ranger) for ESP-IDF (e.g. ESp32)
GNU General Public License v3.0
18 stars 3 forks source link

Found BUG with solution #3

Closed kint3x closed 10 months ago

kint3x commented 10 months ago

Hi, during using this library I found you have typoo in init function

if (v->xshut >= 0) { // XSHUT or power control gpio_set_level (v->xshut, 0); // Off usleep (100000); gpio_set_level (v->xshut, 0); // On usleep (10000); // Plenty of time to boot (data sheet says 1.2ms) }

You should set log. level 1 in second case, so it will turn on (based on docs).

revk commented 10 months ago

Thanks, fixed.