diff options
author | kivinen <kivinen@pkgsrc.org> | 2004-06-09 22:22:09 +0000 |
---|---|---|
committer | kivinen <kivinen@pkgsrc.org> | 2004-06-09 22:22:09 +0000 |
commit | c6aa165b4ef961036c07a533084f58ed512a6c04 (patch) | |
tree | 43c3158061ccd19281ed7d54c841f4682eaef115 /sysutils/asapm/patches | |
parent | e5dbcfd4fd346608bfe1fe0ce48786d2692deed5 (diff) | |
download | pkgsrc-c6aa165b4ef961036c07a533084f58ed512a6c04.tar.gz |
Fixed state of the ac online, it was reversed.
Diffstat (limited to 'sysutils/asapm/patches')
-rw-r--r-- | sysutils/asapm/patches/patch-af | 4 |
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; |