Need to save the temperature in a signed variable. Otherwise, when the
temperature is below zero, an extremely hot temperature is reported to
the system, causing the device to power down.
Change-Id: I243bfc0fd1e1d76b2986e9def624de2b7782d731
Signed-off-by: Greg Meiste <w30289@motorola.com>
int current_avg_uA;
int charge_uAh;
- u16 temp_C; /* units of 0.1 C */
+ short temp_C; /* units of 0.1 C */
u8 percentage; /* battery percentage */
u8 age_scalar; /* converted to percent */