diff options
Diffstat (limited to 'redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch')
-rw-r--r-- | redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch b/redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch new file mode 100644 index 000000000..2b09620bb --- /dev/null +++ b/redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch @@ -0,0 +1,18 @@ +--- trinity-tdelibs-14.0.0~pre596+d6816283/tdecore/tdehardwaredevices.cpp.batterycharge 2013-07-07 11:55:57.000000000 +0200 ++++ trinity-tdelibs-14.0.0~pre596+d6816283/tdecore/tdehardwaredevices.cpp 2013-07-08 20:21:00.196653825 +0200 +@@ -4704,6 +4704,15 @@ + if (nodename == "alarm") { + bdevice->internalSetAlarmEnergy(line.toDouble()/1000000.0); + } ++ if (nodename == "charge_full") { ++ bdevice->internalSetMaximumEnergy(line.toDouble()/1000000.0); ++ } ++ if (nodename == "charge_full_design") { ++ bdevice->internalSetMaximumDesignEnergy(line.toDouble()/1000000.0); ++ } ++ if (nodename == "charge_now") { ++ bdevice->internalSetEnergy(line.toDouble()/1000000.0); ++ } + if (nodename == "energy_full") { + bdevice->internalSetMaximumEnergy(line.toDouble()/1000000.0); + } |