- fix for fisplay of lot number in RL Stats

This commit is contained in:
Andy Rozman 2020-01-25 18:07:22 +00:00
parent 22b8d08449
commit 36128c4007
3 changed files with 7 additions and 2 deletions

View file

@ -160,9 +160,10 @@ public class RileyLinkStatusGeneral extends Fragment implements RefreshableInter
this.pumpFrequency.setText(MainApp.gs(R.string.omnipod_frequency));
if (omnipodPumpStatus.podAvailable) {
this.serialNumber.setText(omnipodPumpStatus.podSessionState.getLot());
this.serialNumber.setText(omnipodPumpStatus.podLotNumber);
this.connectedDevice.setText(omnipodPumpStatus.pumpType == PumpType.Insulet_Omnipod ? "Eros Pod" : "Dash Pod");
} else {
this.serialNumber.setText("??");
this.connectedDevice.setText("-");
}

View file

@ -222,10 +222,12 @@ class OmnipodFragment : Fragment() {
pumpStatus.podNumber == null
} else {
//podAvailable = true
pumpStatus.podLotNumber = "" + pumpStatus.podSessionState.lot
pumpStatus.podAvailable = true
omnipod_pod_address.text = pumpStatus.podSessionState.address.toString()
omnipod_pod_expiry.text = pumpStatus.podSessionState.expiryDateAsString
pumpStatus.podNumber == pumpStatus.podSessionState.address.toString()
pumpStatus.podNumber = pumpStatus.podSessionState.address.toString()
//pumpStatus.podSessionState = checkStatusSet(pumpStatus.podSessionState,
// OmnipodUtil.getPodSessionState()) as PodSessionState?

View file

@ -1,5 +1,6 @@
package info.nightscout.androidaps.plugins.pump.omnipod.driver;
import org.jetbrains.annotations.NotNull;
import org.joda.time.LocalDateTime;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -60,6 +61,7 @@ public class OmnipodPumpStatus extends PumpStatus {
public boolean beepSMBEnabled = true;
public boolean beepTBREnabled = true;
public boolean podDebuggingOptionsEnabled = false;
public String podLotNumber = "???";
public OmnipodPumpStatus(PumpDescription pumpDescription) {
super(pumpDescription);