Fix SMB
remove comment linked to previous version
This commit is contained in:
parent
8592ed3249
commit
117fda4244
|
@ -592,18 +592,17 @@ public class LocalInsightPlugin extends PumpPluginBase implements Pump, Constrai
|
||||||
// Move to Insight room database
|
// Move to Insight room database
|
||||||
InsightBolusID insightBolusID = new InsightBolusID();
|
InsightBolusID insightBolusID = new InsightBolusID();
|
||||||
insightBolusID.bolusID = bolusID;
|
insightBolusID.bolusID = bolusID;
|
||||||
insightBolusID.timestamp = System.currentTimeMillis();
|
insightBolusID.timestamp = dateUtil.now();
|
||||||
insightBolusID.pumpSerial = connectionService.getPumpSystemIdentification().getSerialNumber();
|
insightBolusID.pumpSerial = connectionService.getPumpSystemIdentification().getSerialNumber();
|
||||||
databaseHelper.createOrUpdate(insightBolusID);
|
databaseHelper.createOrUpdate(insightBolusID);
|
||||||
aapsLogger.debug(LTag.PUMP, "XXXX set Bolus: " + dateUtil.dateAndTimeAndSecondsString(dateUtil.now()) + " amount: " + insulin);
|
aapsLogger.debug(LTag.PUMP, "XXXX set Bolus: " + dateUtil.dateAndTimeAndSecondsString(dateUtil.now()) + " amount: " + insulin);
|
||||||
/*
|
pumpSync.syncBolusWithPumpId(
|
||||||
detailedBolusInfo.setBolusTimestamp(insightBolusID.timestamp);
|
insightBolusID.timestamp,
|
||||||
detailedBolusInfo.setPumpType(PumpType.ACCU_CHEK_INSIGHT);
|
detailedBolusInfo.insulin,
|
||||||
detailedBolusInfo.setPumpSerial(serialNumber());
|
detailedBolusInfo.getBolusType(),
|
||||||
detailedBolusInfo.setBolusPumpId(insightBolusID.id);
|
insightBolusID.id,
|
||||||
treatmentsPlugin.addToHistoryTreatment(detailedBolusInfo, true);
|
PumpType.ACCU_CHEK_INSIGHT,
|
||||||
|
serialNumber());
|
||||||
*/
|
|
||||||
while (true) {
|
while (true) {
|
||||||
synchronized ($bolusLock) {
|
synchronized ($bolusLock) {
|
||||||
if (bolusCancelled) break;
|
if (bolusCancelled) break;
|
||||||
|
@ -755,7 +754,7 @@ public class LocalInsightPlugin extends PumpPluginBase implements Pump, Constrai
|
||||||
.enacted(true)
|
.enacted(true)
|
||||||
.comment(R.string.virtualpump_resultok);
|
.comment(R.string.virtualpump_resultok);
|
||||||
aapsLogger.debug(LTag.PUMP, "XXXX Set Temp Basal timestamp: " + dateUtil.now() + " rate: " + percent + " duration: " + durationInMinutes);
|
aapsLogger.debug(LTag.PUMP, "XXXX Set Temp Basal timestamp: " + dateUtil.now() + " rate: " + percent + " duration: " + durationInMinutes);
|
||||||
fetchStatus(); // here I switched fetchStatus and readHistory (I noticed that we could miss the latest command sent to the pump if readHistory is before
|
fetchStatus();
|
||||||
readHistory();
|
readHistory();
|
||||||
} catch (AppLayerErrorException e) {
|
} catch (AppLayerErrorException e) {
|
||||||
aapsLogger.info(LTag.PUMP, "Exception while setting TBR: " + e.getClass().getCanonicalName() + " (" + e.getErrorCode() + ")");
|
aapsLogger.info(LTag.PUMP, "Exception while setting TBR: " + e.getClass().getCanonicalName() + " (" + e.getErrorCode() + ")");
|
||||||
|
@ -1492,7 +1491,6 @@ public class LocalInsightPlugin extends PumpPluginBase implements Pump, Constrai
|
||||||
// else uploadQueue.removeByMongoId("dbAdd", _id);
|
// else uploadQueue.removeByMongoId("dbAdd", _id);
|
||||||
databaseHelper.delete(extendedBolus);
|
databaseHelper.delete(extendedBolus);
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
} else {
|
} else {
|
||||||
if (profileFunction.getProfile(bolusID.timestamp) != null)
|
if (profileFunction.getProfile(bolusID.timestamp) != null)
|
||||||
|
|
Loading…
Reference in a new issue