Set duration in PumpEnactResult when issuing SetTbrCommand.
This commit is contained in:
parent
6842abd157
commit
5f1ab4e45c
1 changed files with 5 additions and 0 deletions
|
@ -248,6 +248,8 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
||||||
pumpEnactResult.success = commandResult.success;
|
pumpEnactResult.success = commandResult.success;
|
||||||
pumpEnactResult.enacted = commandResult.enacted;
|
pumpEnactResult.enacted = commandResult.enacted;
|
||||||
pumpEnactResult.comment = commandResult.message;
|
pumpEnactResult.comment = commandResult.message;
|
||||||
|
// Combo would have bailed if this wasn't set properly. Maybe we should
|
||||||
|
// have the command return this anyways ...
|
||||||
pumpEnactResult.bolusDelivered = detailedBolusInfo.insulin;
|
pumpEnactResult.bolusDelivered = detailedBolusInfo.insulin;
|
||||||
return pumpEnactResult;
|
return pumpEnactResult;
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -280,7 +282,10 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
||||||
pumpEnactResult.enacted = commandResult.enacted;
|
pumpEnactResult.enacted = commandResult.enacted;
|
||||||
pumpEnactResult.comment = commandResult.message;
|
pumpEnactResult.comment = commandResult.message;
|
||||||
pumpEnactResult.isPercent = true;
|
pumpEnactResult.isPercent = true;
|
||||||
|
// Combo would have bailed if this wasn't set properly. Maybe we should
|
||||||
|
// have the command return this anyways ...
|
||||||
pumpEnactResult.percent = percent;
|
pumpEnactResult.percent = percent;
|
||||||
|
pumpEnactResult.duration = durationInMinutes;
|
||||||
return pumpEnactResult;
|
return pumpEnactResult;
|
||||||
} finally {
|
} finally {
|
||||||
ruffyScripter.disconnect();
|
ruffyScripter.disconnect();
|
||||||
|
|
Loading…
Reference in a new issue