diff --git a/pages/settings/devicelist/battery/PageBattery.qml b/pages/settings/devicelist/battery/PageBattery.qml index 485a12012..07d7d4fc8 100644 --- a/pages/settings/devicelist/battery/PageBattery.qml +++ b/pages/settings/devicelist/battery/PageBattery.qml @@ -196,7 +196,7 @@ Page { ListTextItem { //% "Time-to-go" text: qsTrId("battery_time_to_go") - visible: defaultVisible && item.seen + visible: defaultVisible secondaryText: Utils.secondsToString(root.battery.timeToGo) } diff --git a/pages/settings/devicelist/battery/PageBatteryCells.qml b/pages/settings/devicelist/battery/PageBatteryCells.qml index d61c63d2f..3d9deae76 100644 --- a/pages/settings/devicelist/battery/PageBatteryCells.qml +++ b/pages/settings/devicelist/battery/PageBatteryCells.qml @@ -57,7 +57,7 @@ Page { color: Theme.color_font_secondary font.pixelSize: font_size_body1 } - } + }, Column { Text { text: batteryMinCellVoltage.value @@ -133,7 +133,7 @@ Page { color: Theme.color_font_secondary font.pixelSize: font_size_body1 } - } + }, Column { width: parent.width / 4 Text { @@ -171,10 +171,37 @@ Page { ListTextGroup { text: "Cells (Min/Max/Diff/Sum)" textModel: [ - "Sum: " + batteryCellVoltageSum.value + VenusOS.Units_Volt, - "Diff: " + batteryCellVoltageDiff.value + VenusOS.Units_Volt, - "Min: " + batteryMinCellVoltage.value + VenusOS.Units_Volt, - "Max: " + batteryMaxCellVoltage.value + VenusOS.Units_Volt, + "Sum: " + batteryCellVoltageSum.value + VenusOS.Units_Volt, + "Diff: " + batteryCellVoltageDiff.value + VenusOS.Units_Volt, + "Min: " + batteryMinCellVoltage.value + VenusOS.Units_Volt, + "Max: " + batteryMaxCellVoltage.value + VenusOS.Units_Volt, + ] + + VeQuickItem { + id: batteryMinCellVoltage + uid: root.bindPrefix + "/System/MinCellVoltage" + } + VeQuickItem { + id: batteryMaxCellVoltage + uid: root.bindPrefix + "/System/MaxCellVoltage" + } + VeQuickItem { + id: batteryCellVoltageDiff + uid: root.bindPrefix + "/Voltages/Diff" + } + VeQuickItem { + id: batteryCellVoltageSum + uid: root.bindPrefix + "/Voltages/Sum" + } + } + + ListTextGroup { + text: "Cells (Min/Max/Diff/Sum)" + textModel: [ + "Sum: ", batteryCellVoltageSum.value + VenusOS.Units_Volt, + "Diff: ", batteryCellVoltageDiff.value + VenusOS.Units_Volt, + "Min: ", batteryMinCellVoltage.value + VenusOS.Units_Volt, + "Max: ", batteryMaxCellVoltage.value + VenusOS.Units_Volt, ] VeQuickItem {