Commit d14d628a authored by Radek Polak's avatar Radek Polak

gta04 - max_current path for latest 3.7 kernel

parent b3850b6d
......@@ -139,8 +139,7 @@ void NeoHardware::setMaxChargeCurrent(int newValue)
char buf[7];
maxChargeCurrent = newValue;
sprintf(buf, "%d", maxChargeCurrent);
qWriteFile("/sys/class/power_supply/twl4030_usb/max_current", buf);
// Parse uevent string and return given attribute value. Example uevent file:
......@@ -617,8 +617,7 @@ void NeoControl::updateSysfs()
appendValue(tr("USB"), "/sys/class/power_supply/twl4030_usb/uevent", &text,
"POWER_SUPPLY_", " ");
appendValue(tr("USB max current"),
"/sys/class/power_supply/twl4030_usb/max_current", &text);
......@@ -681,7 +680,7 @@ void NeoControl::chargeStateChanged(int state)
QMessageBox::information(this, tr("Charging log"),
("Charging log is now in /var/log/charging QtMoko will update it every 5 minutes."));
("Charging log is now in /var/log/charging. It will take a while until logging starts."));
} else {
if (QMessageBox::question(this, tr("Stop charging log"),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment