tp_smapi.get need a batid param

This commit is contained in:
BarbUk 2018-12-01 16:06:12 +04:00
parent dec9e7b1eb
commit 1046cf6ce9
1 changed files with 1 additions and 1 deletions

View File

@ -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