Hi,

This patch is just a simple patch. I had problem using the battery
module, it wasn't working for me. I was bored and i look to sources of
badget... The problem comes from the name of the device.

For me the battery path is : /sys/class/power_supply/C1FD/ and the
module was looking to a name that begin by "bat" i just removed this
check.

See you.
-- 
regards, Stéphane
Index: batget.c
===================================================================
--- batget.c	(revision 35795)
+++ batget.c	(working copy)
@@ -628,7 +628,6 @@
 	       {
 		  Sys_Class_Power_Supply_Uevent *sysev;
 	     
-		  if (strncasecmp("bat", name, 3)) continue;
 		  sysev = E_NEW(Sys_Class_Power_Supply_Uevent, 1);
 		  sysev->name = strdup(name);
 		  snprintf(buf, sizeof(buf), "/sys/class/power_supply/%s/uevent", name);
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to