wollewald / INA219_WE

An Arduino library for the INA219 current sensor module.
https://wolles-elektronikkiste.de/en/ina219-current-and-power-sensor
MIT License
39 stars 11 forks source link

Impossible to use together with ADS1115_WE #6

Closed SovGVD closed 3 years ago

SovGVD commented 3 years ago

Hello. Thanks for amazing set of libraries.

I have a problem using INA219_WE together with ADS1115_WE:

/.../libraries/INA219_WE/src/INA219_WE.h:62:3: error: conflicting declaration 'typedef enum INA219_MEASURE_MODE measureMode'
 } measureMode;
   ^
/.../libraries/ADS1115_WE/src/ADS1115_WE.h:77:3: note: previous declaration as 'typedef enum ADS1115_MEASURE_MODE measureMode'
 } measureMode;
   ^

As you can see there is a conflict with names.

wollewald commented 3 years ago

@SovGVD First of all, thanks for the feedback!

Was easy to fix - please try.

SovGVD commented 3 years ago

Yay! Now it is compiling without issues. Thank you!