Typo
authorEnrico Zini <enrico@enricozini.org>
Wed, 30 Sep 2009 13:29:57 +0000 (14:29 +0100)
committerEnrico Zini <enrico@enricozini.org>
Wed, 30 Sep 2009 13:29:57 +0000 (14:29 +0100)
src/app_power.vala

index 7d2ca2bbd9f9e00c9ec5d9e84a3ac1744cee754a..d9503d4d33a8d2a50081fe3abdf6bd274eb3740c 100644 (file)
@@ -596,7 +596,7 @@ public void init()
                Dkp.Device dev = (Dkp.Device)devs.pdata[i];
                stderr.printf("Found new device %s\n", dev.native_path);
                dev.print();
-               stderr.printf("Rechargeable: %s\n", def.is_rechargeable ? "yes" : "no");
+               stderr.printf("Rechargeable: %s\n", dev.is_rechargeable ? "yes" : "no");
                // On the FreeRunner, for some reason the battery does not
                // appear as rechargeable, so I also match it literally
                if (!dev.is_rechargeable || dev.native_path != "/sys/class/power_supply/battery") continue;