summaryrefslogtreecommitdiff
path: root/sysutils/asapm/patches/patch-af
diff options
context:
space:
mode:
authorkivinen <kivinen>2004-06-09 22:22:09 +0000
committerkivinen <kivinen>2004-06-09 22:22:09 +0000
commitd80dba471f0dd6555b9d7c87420cdaa280061f68 (patch)
tree43c3158061ccd19281ed7d54c841f4682eaef115 /sysutils/asapm/patches/patch-af
parent23b09ef948f3fd6671c01df25e7ec1e74118a608 (diff)
downloadpkgsrc-d80dba471f0dd6555b9d7c87420cdaa280061f68.tar.gz
Fixed state of the ac online, it was reversed.
Diffstat (limited to 'sysutils/asapm/patches/patch-af')
-rw-r--r--sysutils/asapm/patches/patch-af4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/asapm/patches/patch-af b/sysutils/asapm/patches/patch-af
index 6fe3850a4a1..8f816971ec2 100644
--- a/sysutils/asapm/patches/patch-af
+++ b/sysutils/asapm/patches/patch-af
@@ -1,4 +1,4 @@
-$NetBSD: patch-af,v 1.2 2004/06/09 22:15:41 kivinen Exp $
+$NetBSD: patch-af,v 1.3 2004/06/09 22:22:09 kivinen Exp $
--- apm_read.c.orig 2001-11-23 23:07:19.000000000 +0200
+++ apm_read.c
@@ -102,7 +102,7 @@ $NetBSD: patch-af,v 1.2 2004/06/09 22:15:41 kivinen Exp $
+ }
+
+ if (state.ac_line_status != connected) {
-+ state.ac_line_status = connected ? AC_BATTERY : AC_ONLINE;
++ state.ac_line_status = connected ? AC_ONLINE : AC_BATTERY;
+ ++state.update;
+ if ( state.ac_line_status == AC_ONLINE )
+ state.flags |= CHANGE_AC_ON;