Add TODO's for setting Omnipod device driver busy state
This commit is contained in:
parent
efcd1cdfe1
commit
0ade438e95
1 changed files with 5 additions and 0 deletions
|
@ -148,6 +148,10 @@ public class AapsOmnipodManager implements OmnipodCommunicationManagerInterface
|
||||||
public PumpEnactResult setBolus(Double amount) {
|
public PumpEnactResult setBolus(Double amount) {
|
||||||
try {
|
try {
|
||||||
delegate.bolus(amount, statusResponse -> {
|
delegate.bolus(amount, statusResponse -> {
|
||||||
|
// TODO set device driver to available here
|
||||||
|
|
||||||
|
// BS: We could optionally use the status response from the command completion verification,
|
||||||
|
// But I don't think we can use that information in any useful way
|
||||||
if (statusResponse == null) {
|
if (statusResponse == null) {
|
||||||
// Failed to retrieve status response after bolus
|
// Failed to retrieve status response after bolus
|
||||||
// Bolus probably finished anyway
|
// Bolus probably finished anyway
|
||||||
|
@ -157,6 +161,7 @@ public class AapsOmnipodManager implements OmnipodCommunicationManagerInterface
|
||||||
// Bolus successfully completed
|
// Bolus successfully completed
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// TODO set device driver busy here
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
String comment = handleAndTranslateException(ex);
|
String comment = handleAndTranslateException(ex);
|
||||||
if (OmnipodManager.isCertainFailure(ex)) {
|
if (OmnipodManager.isCertainFailure(ex)) {
|
||||||
|
|
Loading…
Reference in a new issue