Skip to content

Commit

Permalink
Merge pull request #3195 from Navid200/Navid_2023_11_17
Browse files Browse the repository at this point in the history
Update G7 warmup and lifetime
  • Loading branch information
jamorham authored Nov 29, 2023
2 parents a8b51a0 + 622f5d6 commit a06350c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import com.eveningoutpost.dexdrip.models.Sensor;
import com.eveningoutpost.dexdrip.R;
import com.eveningoutpost.dexdrip.models.UserError;
import com.eveningoutpost.dexdrip.utilitymodels.Constants;
import com.eveningoutpost.dexdrip.utilitymodels.Pref;
import com.eveningoutpost.dexdrip.utilitymodels.StatusItem.Highlight;
Expand Down Expand Up @@ -102,6 +103,11 @@ public static SensorDays get(DexCollectionType type, final String tx_id) {
ths.warmupMs = 2 * HOUR_IN_MS;
}

if (FirmwareCapability.isDeviceG7(getTransmitterID())) { // If using a G7
ths.period = DAY_IN_MS * 10 + HOUR_IN_MS * 12; // The device lasts 10.5 days.
ths.warmupMs = 30 * MINUTE_IN_MS; // The warmup time is 30 minutes.
}

} else {
// unknown type
}
Expand Down

0 comments on commit a06350c

Please sign in to comment.