From 1046cf6ce9b6a96ab6d6ef3ea7e9ffca07e12822 Mon Sep 17 00:00:00 2001 From: BarbUk Date: Sat, 1 Dec 2018 16:06:12 +0400 Subject: [PATCH] tp_smapi.get need a batid param --- widget/contrib/tp_smapi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/contrib/tp_smapi.lua b/widget/contrib/tp_smapi.lua index e6da918..7192990 100644 --- a/widget/contrib/tp_smapi.lua +++ b/widget/contrib/tp_smapi.lua @@ -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