Skip to content

Commit 0d824ae

Browse files
committed
[modify] add same condition for read manuf date
Signed-off-by: Leo_Tsai <[email protected]>
1 parent 8259d6e commit 0d824ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

board/hx20/battery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void battery_customize(struct charge_state_data *emi_info)
132132
int year = 0;
133133

134134
/* manufacture date is static data */
135-
if (!read_manuf_date && battery_is_present()) {
135+
if (!read_manuf_date && battery_is_present() == BP_YES) {
136136
rv = battery_manufacture_date(&year, &month, &day);
137137
if (rv == EC_SUCCESS) {
138138
ccprintf("Batt manufacturer date: %d.%d.%d\n", year, month, day);

0 commit comments

Comments
 (0)