diff --git a/netbsd/Platform.c b/netbsd/Platform.c index b7364926..b34a6607 100644 --- a/netbsd/Platform.c +++ b/netbsd/Platform.c @@ -410,7 +410,7 @@ void Platform_getBattery(double* percent, ACPresence* isOnAC) { totalCapacity += maxCharge; } - if (isACAdapter) { + if (isACAdapter && *isOnAC != AC_PRESENT) { *isOnAC = isConnected ? AC_PRESENT : AC_ABSENT; } }