Skip to content

Commit f6b1f0c

Browse files
Merge pull request #1042 from FrameworkComputer/marigold.display_batt_charge
fwk: override the display charge value for Windows system
2 parents 40b5d90 + 4c0c417 commit f6b1f0c

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

zephyr/program/framework/azalea/src/battery.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ __override void board_battery_compensate_params(struct batt_params *batt)
300300
batt->flags &= ~BATT_FLAG_BAD_ANY;
301301
batt->flags |= BATT_FLAG_RESPONSIVE;
302302
batt_cache.flags |= BATT_FLAG_RESPONSIVE;
303+
304+
/* override the display charge value for Windows system */
305+
batt->display_charge = get_system_percentage();
303306
}
304307

305308
/*****************************************************************************/

zephyr/program/framework/lotus/src/battery.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ __override void board_battery_compensate_params(struct batt_params *batt)
357357
batt->flags &= ~BATT_FLAG_BAD_ANY;
358358
batt->flags |= BATT_FLAG_RESPONSIVE;
359359
batt_cache.flags |= BATT_FLAG_RESPONSIVE;
360+
361+
/* override the display charge value for Windows system */
362+
batt->display_charge = get_system_percentage();
360363
}
361364

362365
void board_cut_off(void)

zephyr/program/framework/marigold/src/battery.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,9 @@ __override void board_battery_compensate_params(struct batt_params *batt)
366366
batt->flags &= ~BATT_FLAG_BAD_ANY;
367367
batt->flags |= BATT_FLAG_RESPONSIVE;
368368
batt_cache.flags |= BATT_FLAG_RESPONSIVE;
369+
370+
/* override the display charge value for Windows system */
371+
batt->display_charge = get_system_percentage();
369372
}
370373

371374
/*****************************************************************************/

0 commit comments

Comments
 (0)