Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorham committed Jan 10, 2024
2 parents 8978373 + 6aec37b commit 28dc229
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.eveningoutpost.dexdrip.g5model;


import static com.eveningoutpost.dexdrip.g5model.Ob1G5StateMachine.shortTxId;

import com.eveningoutpost.dexdrip.models.JoH;
import com.eveningoutpost.dexdrip.services.G5BaseService;
import com.eveningoutpost.dexdrip.services.Ob1G5CollectionService;
Expand Down Expand Up @@ -61,7 +63,7 @@ public String daysEstimate() {

StringBuilder b = new StringBuilder();

if (battery.runtime > -1) {
if (battery.runtime > -1 && !shortTxId()) { // Excluding G7
b.append(battery.runtime);
}

Expand Down Expand Up @@ -93,6 +95,9 @@ public boolean voltageAWarning() {
}

public boolean voltageBWarning() {
if (shortTxId()) { // G7 only
return voltageB() < (G5BaseService.LOW_BATTERY_WARNING_LEVEL - 25);
}
return voltageB() < (G5BaseService.LOW_BATTERY_WARNING_LEVEL - 10);
};

Expand Down

0 comments on commit 28dc229

Please sign in to comment.