Hi, a while ago I built a device that uses 2 INA219 devices, and it worked very well.
However, I recently had occasion to modify other parts of the software and recompiled/uploaded the original code first, but now if I initialize both it hangs or reboots the system.
#include <Adafruit_INA219.h>
#define INA219_1 0x40
#define INA219_2 0x41
Adafruit_INA219 ina2190;
Adafruit_INA219 ina2191;
in setup()
ina2191.begin(INA219_1);
ina2190.begin(INA219_2);
Hangs or crashes here.
If I comment out either of the begin() calls it runs OK.
I assume that since the original code fails after a recompile the failure is due to a change in either the adafruit library or one of the supporting libraries.
Any idea how to fix this? or get around the problem?
TIA,
David