Updated check-power.ps1

This commit is contained in:
Markus Fleschutz 2024-01-27 10:58:07 +01:00
parent abb97e1c9f
commit dc93b28ee9

View File

@ -24,7 +24,7 @@ try {
if ($details.BatteryChargeStatus -eq "NoSystemBattery") {
$reply = "✅ AC powered"
} elseif ($percent -ge 95) {
$reply = "✅ Battery fully charged ($percent%)"
$reply = "✅ Battery $percent% full"
} else {
$reply = "✅ Battery charging ($percent%)"
}