Send invalid boluses (prime boluses) to watch.

This commit is contained in:
Johannes Mockenhaupt 2018-05-02 22:49:31 +02:00
parent 599c87f794
commit 396268d9c8
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -465,7 +465,7 @@ public class WatchUpdaterService extends WearableListenerService implements
List<Treatment> treatments = TreatmentsPlugin.getPlugin().getTreatmentsFromHistory(); List<Treatment> treatments = TreatmentsPlugin.getPlugin().getTreatmentsFromHistory();
for (Treatment treatment : treatments) { for (Treatment treatment : treatments) {
if (treatment.isValid && treatment.date > startTimeWindow) { if (treatment.date > startTimeWindow) {
boluses.add(treatmentMap(treatment.date, treatment.insulin, treatment.carbs, treatment.isSMB, treatment.isValid)); boluses.add(treatmentMap(treatment.date, treatment.insulin, treatment.carbs, treatment.isSMB, treatment.isValid));
} }