From e9bae062f8eb99c7743b635e398b6fcbd79dfd2e Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Fri, 10 May 2024 01:13:48 +0200 Subject: [PATCH] Update GroundPowerWidget.qml --- qml/ui/widgets/GroundPowerWidget.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qml/ui/widgets/GroundPowerWidget.qml b/qml/ui/widgets/GroundPowerWidget.qml index c6f223b21..e0a860f2c 100644 --- a/qml/ui/widgets/GroundPowerWidget.qml +++ b/qml/ui/widgets/GroundPowerWidget.qml @@ -179,9 +179,14 @@ BaseWidget { var currentVoltage = _ohdSystemGround.ina219_voltage_millivolt; if (_ohdSystemGround.ina219_current_milliamps===1338) { var percentage = _ohdSystemGround.ina219_voltage_millivolt; + battery_volt_text.visible= false; + battery_amp_text.visible=false; } else if (_ohdSystemGround.ina219_current_milliamps===1337) { var percentage = _ohdSystemGround.ina219_voltage_millivolt; + battery_volt_text.visible= false; + battery_amp_text.visible= false; + batteryGauge.color= "green"; } else { var percentage = calculateBatteryPercentage(currentVoltage);