Skip to content
Permalink
Browse files

Support reading bolus history if history is empty (new pump).

  • Loading branch information...
jotomo committed Jun 18, 2018
1 parent 9fbc4b1 commit d68ab9f8d402a1a3e7f181c82118ea1e121bd3a8
Showing with 7 additions and 2 deletions.
  1. +7 −2 app/src/main/java/org/monkey/d/ruffy/ruffy/driver/display/menu/MenuFactory.java
@@ -1370,8 +1370,13 @@ else if(p instanceof NumberPattern)
bolus.add(p);
else if(p instanceof CharacterPattern && ((CharacterPattern)p).getCharacter()=='U')
stage++;
else
return null;
else {
// virgin pump w/o any history yet
m.setAttribute(MenuAttribute.CURRENT_RECORD, 0);
m.setAttribute(MenuAttribute.TOTAL_RECORD, 0);
m.setAttribute(MenuAttribute.BOLUS_TYPE, BolusType.NORMAL);
return m;
}
break;
case 2:
if(p instanceof NumberPattern)

0 comments on commit d68ab9f

Please sign in to comment.
You can’t perform that action at this time.