summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_smbat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/acpica/acpi_smbat.c')
-rw-r--r--sys/dev/acpica/acpi_smbat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_smbat.c b/sys/dev/acpica/acpi_smbat.c
index 02a461e..bdaf945 100644
--- a/sys/dev/acpica/acpi_smbat.c
+++ b/sys/dev/acpica/acpi_smbat.c
@@ -390,6 +390,7 @@ acpi_smbat_get_bst(device_t dev, struct acpi_bst *bst)
if (val > 0) {
sc->bst.rate = val * factor;
+ sc->bst.state &= ~SMBATT_BS_DISCHARGING;
sc->bst.state |= ACPI_BATT_STAT_CHARGING;
} else if (val < 0)
sc->bst.rate = (-val) * factor;
OpenPOWER on IntegriCloud