google_battery: enlarge the size of time record parameters
prevent overflow in long time charge situation
Bug: 160974435
Signed-off-by: Jenny Ho <[email protected]>
Change-Id: Ib73ffe87db8b7b1364cd7051cf4d2351512f6ffd
Signed-off-by: Ken Tsou <[email protected]>
(cherry picked from commit 318dae7de4465cbad6639e794ae3781d934704fe)
diff --git a/google_bms.h b/google_bms.h
index 01d35b3..0b2e901 100644
--- a/google_bms.h
+++ b/google_bms.h
@@ -141,9 +141,9 @@
uint16_t cc_in;
uint16_t cc_total;
- uint16_t time_fast;
- uint16_t time_taper;
- uint16_t time_other;
+ uint32_t time_fast;
+ uint32_t time_taper;
+ uint32_t time_other;
int16_t temp_in;
int16_t temp_min;