mirror of https://github.com/lcpz/lain.git
tp_smapi.get need a batid param
This commit is contained in:
parent
dec9e7b1eb
commit
1046cf6ce9
|
@ -35,7 +35,7 @@ local function factory(apipath)
|
|||
end
|
||||
|
||||
function tp_smapi.percentage(batid)
|
||||
return tp_smapi.get("remaining_percent")
|
||||
return tp_smapi.get(batid, "remaining_percent")
|
||||
end
|
||||
|
||||
-- either running or charging time
|
||||
|
|
Loading…
Reference in New Issue