summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/charge_state_v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/charge_state_v2.c b/common/charge_state_v2.c
index 7b20c52eef..f693f99482 100644
--- a/common/charge_state_v2.c
+++ b/common/charge_state_v2.c
@@ -165,7 +165,7 @@ static int update_static_battery_info(void)
host_unlock_memmap();
if (rv)
- problem(PR_STATIC_UPDATE, 0);
+ problem(PR_STATIC_UPDATE, rv);
else
/* No errors seen. Battery data is now present */
*host_get_memmap(EC_MEMMAP_BATTERY_VERSION) = 1;