summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-08-20 14:19:53 +1000
committerNathan Scott <nathans@redhat.com>2020-08-20 14:19:53 +1000
commita82fd262d75f8494c34416e49c6241c29692676e (patch)
tree5c4ff9b8a872ca06e8e200a034099c736da1e160 /openbsd
parentcdff8aea2ab10870af1aad5bdb6949ea0fd407b0 (diff)
parent63fbc3b51704b4b122d2cab57de7e7f9dfcc03b1 (diff)
Merge branch 'hishamhm-pull-960'
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/Battery.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsd/Battery.c b/openbsd/Battery.c
index 80511dc7..c215e418 100644
--- a/openbsd/Battery.c
+++ b/openbsd/Battery.c
@@ -35,7 +35,7 @@ void Battery_getData(double* level, ACPresence* isOnAC) {
size_t sdlen = sizeof(struct sensordev);
bool found = findDevice("acpibat0", mib, &snsrdev, &sdlen);
-
+
*level = -1;
if (found) {
/* last full capacity */
@@ -58,9 +58,9 @@ void Battery_getData(double* level, ACPresence* isOnAC) {
}
}
}
-
+
found = findDevice("acpiac0", mib, &snsrdev, &sdlen);
-
+
*isOnAC = AC_ERROR;
if (found) {
mib[3] = 9;

© 2014-2024 Faster IT GmbH | imprint | privacy policy