Merge "power: batterydata-lib: fix out of bound errors"