proper reaction to pump error
This commit is contained in:
parent
2b0c74c56f
commit
5c506faa65
1 changed files with 7 additions and 4 deletions
|
@ -31,10 +31,6 @@ public class MsgError extends MessageBase {
|
||||||
break;
|
break;
|
||||||
case 5: // Occlusion
|
case 5: // Occlusion
|
||||||
errorString = MainApp.sResources.getString(R.string.occlusion);
|
errorString = MainApp.sResources.getString(R.string.occlusion);
|
||||||
EventOverviewBolusProgress bolusingEvent = EventOverviewBolusProgress.getInstance();
|
|
||||||
MsgBolusStop.stopped = true;
|
|
||||||
bolusingEvent.status = errorString;
|
|
||||||
MainApp.bus().post(bolusingEvent);
|
|
||||||
break;
|
break;
|
||||||
case 7: // Low Battery
|
case 7: // Low Battery
|
||||||
errorString = MainApp.sResources.getString(R.string.lowbattery);
|
errorString = MainApp.sResources.getString(R.string.lowbattery);
|
||||||
|
@ -43,6 +39,13 @@ public class MsgError extends MessageBase {
|
||||||
errorString = MainApp.sResources.getString(R.string.batterydischarged);
|
errorString = MainApp.sResources.getString(R.string.batterydischarged);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (errorCode < 8) { // bolus delivering stopped
|
||||||
|
EventOverviewBolusProgress bolusingEvent = EventOverviewBolusProgress.getInstance();
|
||||||
|
MsgBolusStop.stopped = true;
|
||||||
|
bolusingEvent.status = errorString;
|
||||||
|
MainApp.bus().post(bolusingEvent);
|
||||||
|
}
|
||||||
if (Config.logDanaMessageDetail)
|
if (Config.logDanaMessageDetail)
|
||||||
log.debug("Error detected: " + errorString);
|
log.debug("Error detected: " + errorString);
|
||||||
MainApp.getConfigBuilder().uploadError(errorString);
|
MainApp.getConfigBuilder().uploadError(errorString);
|
||||||
|
|
Loading…
Reference in a new issue