diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java index 53998e0f90..c147fef6b0 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java @@ -347,6 +347,10 @@ public class ActionStringHandler { if ( (carbsAfterConstraints - carbs != 0)) { rMessage += "\n" + MainApp.gs(R.string.constraintapllied); } + if(carbsAfterConstraints <= 0){ + sendError("Carbs = 0! No action taken!"); + return; + } rAction += "ecarbs " + carbsAfterConstraints + " " + starttimestamp + " " + duration; } else return;