adafruit / Adafruit_VL53L0X

Arduino library for Adafruit VL53L0X
149 stars 118 forks source link

Fix overload xTalkCorrection #45

Closed paclema closed 3 years ago

paclema commented 3 years ago

AS explained in this issue, I have added the fix to prevent overload error:

vl53l0x_api_core.cpp:1702:50: error: call of overloaded 'abs(FixPoint1616_t)' is ambiguous
ladyada commented 3 years ago

can you check - is this fixed in the 'upstream' library?

paclema commented 3 years ago

Yes, I have checked from this repo that it fails when using an esp32. Adding this overload solves the issue

paclema commented 3 years ago

Clang format should be fixed now @ladyada

ladyada commented 3 years ago

ok we'll have some folks try it!

paclema commented 3 years ago

Thanks!