Default to unknown state

This commit is contained in:
Matti Viljanen 2021-05-22 22:58:05 +03:00
parent 4ef46fcd1a
commit 5c5aa961e7
No known key found for this signature in database
GPG key ID: CF32A1495158F888
2 changed files with 2 additions and 1 deletions

View file

@ -37,6 +37,7 @@ Page {
"overheat": qsTr("Overheated", "Battery is very hot"),
"cool": qsTr("Cool", "Battery is cool"),
"cold": qsTr("Cold", "Battery is very cold"),
"unknown": qsTr("unknown", "Battery not detected, or faulty, or something")
}
property bool serviceRunning: true

View file

@ -77,7 +77,7 @@ private:
bool chargingEnabled = true; // Only ever disabled manually
QString health = "Good"; // Good, Warm, Overheat. Might have Cold or Overvoltage depending on driver
QString health = "unknown"; // Good, warm, overheat. Might have Cold or Overvoltage depending on driver
int temperature = 0; // freezing
int enableChargingValue = 1;