Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from MilosKozak/empty-bolus-history-support
Browse files Browse the repository at this point in the history
Empty bolus history support
  • Loading branch information
jotomo committed Jun 19, 2018
2 parents 9fbc4b1 + a65693c commit eb2815f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ public static Title resolve(String title) {
if(title.equalsIgnoreCase("ΔIаPKEIа п.B.P.")) //TBR 2
return Title.TBR_DURATION;

// some pumps came preconfigured with a different quick info name
if (title.equalsIgnoreCase("accu chek spirit"))
return Title.QUICK_INFO;

//FIXME add Translations
return null;
Expand Down

0 comments on commit eb2815f

Please sign in to comment.