Skip to content

Commit

Permalink
simbatt: Clear BATTERY_CAPACITY_RELATIVE field
Browse files Browse the repository at this point in the history
Clear BATTERY_INFORMATION::BATTERY_CAPACITY_RELATIVE field to enable per-battery charge display in Windows Settings.
  • Loading branch information
Fredrik Orderud authored and forderud committed Jun 18, 2024
1 parent dbfbead commit fe85bdb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions simbatt/func/miniclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,7 @@ Return Value:
DevExt->State.BatteryStatus.Capacity = 100;
DevExt->State.BatteryStatus.Voltage = BATTERY_UNKNOWN_VOLTAGE;
DevExt->State.BatteryStatus.Rate = 0;
DevExt->State.BatteryInfo.Capabilities = BATTERY_SYSTEM_BATTERY |
BATTERY_CAPACITY_RELATIVE;

DevExt->State.BatteryInfo.Capabilities = BATTERY_SYSTEM_BATTERY;
DevExt->State.BatteryInfo.Technology = 1;
DevExt->State.BatteryInfo.Chemistry[0] = 'F';
DevExt->State.BatteryInfo.Chemistry[1] = 'a';
Expand Down

0 comments on commit fe85bdb

Please sign in to comment.