Commit b3850b6d authored by Radek Polak's avatar Radek Polak

gta04 - log charging using timer when interval is small

parent ed08c604
......@@ -197,6 +197,11 @@ void NeoHardware::logCharge(QDateTime now, int chargeNow)
chargeLog.write(newEntry.toLatin1().constData());
chargeLog.close();
// When user selects fast updates, use timer to update status because
// uevent does not trigger that fast.
if (chargingLogInterval < 300)
QTimer::singleShot(1000 * chargingLogInterval, this, SLOT(updateStatus()));
}
void NeoHardware::updateStatus()
......
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