X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/dec9e7b1eba77e8012e4ffc0c43acc5e28167d7c..037f2c36412a5b82d972557fbd4d4566732a1436:/widget/contrib/tp_smapi.lua

diff --git a/widget/contrib/tp_smapi.lua b/widget/contrib/tp_smapi.lua
index e6da918..4f43e44 100644
--- a/widget/contrib/tp_smapi.lua
+++ b/widget/contrib/tp_smapi.lua
@@ -19,7 +19,7 @@ local string  = string
 
 local function factory(apipath)
     local tp_smapi = {
-        path = apipath or "/sys/devices/platform/tp_smapi"
+        path = apipath or "/sys/devices/platform/smapi"
     }
 
     function tp_smapi.get(batid, feature)
@@ -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