flav1972 / ArduinoINA219

An Arduino library for the INA219 I2C current monitor
17 stars 16 forks source link

Rename register labels due to conflict with Mega 2560 boards #8

Closed darsys closed 4 years ago

darsys commented 5 years ago

I could not compile this library on an Arduino Mega 2560 board. The issues were because of a naming conflict with the configuration register bit labels PG1 and PG0 in INA219.cpp. I just renamed PG1 and PG0 to PG_1 and PG_0.