File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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/*****************************************************************************/
Original file line number Diff line number Diff 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
362365void board_cut_off (void )
Original file line number Diff line number Diff 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/*****************************************************************************/
You can’t perform that action at this time.
0 commit comments