Skip to content

Commit

Permalink
Update GroundPowerWidget.qml
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed May 9, 2024
1 parent 4f09288 commit e9bae06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qml/ui/widgets/GroundPowerWidget.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e9bae06

Please sign in to comment.