From fe85bdb9703cd973115759d2938f94a179e5ae1b Mon Sep 17 00:00:00 2001 From: Fredrik Orderud Date: Thu, 7 Dec 2023 15:36:38 +0100 Subject: [PATCH] simbatt: Clear BATTERY_CAPACITY_RELATIVE field Clear BATTERY_INFORMATION::BATTERY_CAPACITY_RELATIVE field to enable per-battery charge display in Windows Settings. --- simbatt/func/miniclass.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/simbatt/func/miniclass.c b/simbatt/func/miniclass.c index 612b4c660..78a13bdf6 100644 --- a/simbatt/func/miniclass.c +++ b/simbatt/func/miniclass.c @@ -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';