When building powercape.c and ina219.c for Beaglebone Black running a Resin.io Debian container, I had to change int i2c_bus = 1; to int i2c_bus = 2; as the devices were on the i2c-2 bus instead of the i2c-1 bus.
I have a patch if you want to make the fixes programatically (git apply fix_powercape.patch).
When building
powercape.candina219.cfor Beaglebone Black running a Resin.io Debian container, I had to changeint i2c_bus = 1;toint i2c_bus = 2;as the devices were on the i2c-2 bus instead of the i2c-1 bus.I have a patch if you want to make the fixes programatically (
git apply fix_powercape.patch).