We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8259d6e commit 0d824aeCopy full SHA for 0d824ae
board/hx20/battery.c
@@ -132,7 +132,7 @@ void battery_customize(struct charge_state_data *emi_info)
132
int year = 0;
133
134
/* manufacture date is static data */
135
- if (!read_manuf_date && battery_is_present()) {
+ if (!read_manuf_date && battery_is_present() == BP_YES) {
136
rv = battery_manufacture_date(&year, &month, &day);
137
if (rv == EC_SUCCESS) {
138
ccprintf("Batt manufacturer date: %d.%d.%d\n", year, month, day);
0 commit comments