LTC2942 interface with interrupt and battery register calculations
Diff: LTC294X.cpp
- Revision:
- 1:547ec53dc37d
- Parent:
- 0:f9e13080204a
--- a/LTC294X.cpp Thu Sep 17 11:20:29 2015 +0000 +++ b/LTC294X.cpp Thu Aug 08 18:00:00 2019 +0000 @@ -158,7 +158,7 @@ int LTC29421::accumulatedChargeReg(){ char inn = ACC_MSB; char outt[2]; - _i2c.write( _addr, &inn, 1 ,true ); + _i2c.write( _addr, &inn, 1 , true); _i2c.read( _addr, outt, 2 ); int accChg = (int)outt[0]; accChg = (accChg*256)+ outt[1];