Default to unknown state
This commit is contained in:
parent
4ef46fcd1a
commit
5c5aa961e7
2 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ Page {
|
||||||
"overheat": qsTr("Overheated", "Battery is very hot"),
|
"overheat": qsTr("Overheated", "Battery is very hot"),
|
||||||
"cool": qsTr("Cool", "Battery is cool"),
|
"cool": qsTr("Cool", "Battery is cool"),
|
||||||
"cold": qsTr("Cold", "Battery is very cold"),
|
"cold": qsTr("Cold", "Battery is very cold"),
|
||||||
|
"unknown": qsTr("unknown", "Battery not detected, or faulty, or something")
|
||||||
}
|
}
|
||||||
property bool serviceRunning: true
|
property bool serviceRunning: true
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ private:
|
||||||
bool chargingEnabled = true; // Only ever disabled manually
|
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 temperature = 0; // freezing
|
||||||
|
|
||||||
int enableChargingValue = 1;
|
int enableChargingValue = 1;
|
||||||
|
|
Loading…
Reference in a new issue