LTC2942 interface with interrupt and battery register calculations
Revision 1:547ec53dc37d, committed 2019-08-08
- Comitter:
- kaushalpkk
- Date:
- Thu Aug 08 18:00:00 2019 +0000
- Parent:
- 0:f9e13080204a
- Commit message:
- dfgdfg
Changed in this revision
| LTC294X.cpp | Show annotated file Show diff for this revision Revisions of this file |
| LTC294X.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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];
--- a/LTC294X.h Thu Sep 17 11:20:29 2015 +0000
+++ b/LTC294X.h Thu Aug 08 18:00:00 2019 +0000
@@ -3,7 +3,7 @@
#include "mbed.h"
-//#define LTC_CONSOLE_OUTOUT 1 /* Set this if you need debug messages on the console; */
+#define LTC_CONSOLE_OUTOUT 1 /* Set this if you need debug messages on the console; */
/* it will have an impact on code-size and power consumption. */
#if LTC_CONSOLE_OUTOUT