Open mikeleib opened 2 years ago
Can you bug the ESP32 Core Developers to scope this better? Using macros ignores scoping rules of the language and is causing this issue; if they had scoped it as a const or an enum, we wouldn't have a problem since OPEN_DRAIN is defined within the scope of the BMI088 class.
What is the fix for this?
Either get the ESP32 devs to not use macros or rename OPEN_DRAIN in this library to something else.
Due to definition of OPEN_DRAIN at https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-gpio.h#L50, this library cannot be compiled on an esp32.