bat: fix battery detection
This commit is contained in:
parent
a4bd3075e5
commit
7cbf987a2a
|
@ -33,7 +33,7 @@ local function worker(format, warg)
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Check if the battery is present
|
-- Check if the battery is present
|
||||||
if not battery.present == "1\n" then
|
if battery.present ~= "1\n" then
|
||||||
return {battery_state["Unknown\n"], 0, "N/A"}
|
return {battery_state["Unknown\n"], 0, "N/A"}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue