Don't send future carbs to pumps.

This commit is contained in:
Johannes Mockenhaupt 2018-04-21 14:08:42 +02:00
parent c0250dd62c
commit 9c6ee32586
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -431,7 +431,7 @@ public class NewCarbsDialog extends DialogFragment implements OnClickListener, C
carbInfo.context = getContext();
carbInfo.source = Source.USER;
carbInfo.notes = notes;
if (ConfigBuilderPlugin.getActivePump().getPumpDescription().storesCarbInfo) {
if (ConfigBuilderPlugin.getActivePump().getPumpDescription().storesCarbInfo && carbInfo.date <= now()) {
ConfigBuilderPlugin.getCommandQueue().bolus(carbInfo, new Callback() {
@Override
public void run() {