sensor_t typename clash
maxgerhardt opened this issue · 3 comments
Adafruit_Sensor/Adafruit_Sensor.h
Lines 144 to 155 in 69d2d4f
with its very generic sensor_t
typename directly clashes with
A type used in the esp_camera
system, aka a camera sensor. Using both these libraries in the same code file is not possible (but in split files it is).
Not sure if that should be fixed since changing the name breaks compatibility, but at least FYI for other people running into this error during development, as they did in our forum.
Can't you avoid this in your code by encapsulating one of them in a namespace?
Could possibly be running into https://softwareengineering.stackexchange.com/questions/298576/c-extensible-namespaces-how-to-force-declarations-back-into-global-namespace, but have not tried it.