summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
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;