From 66774a3f57a7c80b438340a9790aa3e31eba6e48 Mon Sep 17 00:00:00 2001 From: fyf Date: Wed, 18 Oct 2023 14:37:31 +0800 Subject: [PATCH] 122121212 --- .../business/ExecuteTheRecipe.java | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java b/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java index 033bdf1a..3f3379b7 100644 --- a/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java +++ b/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java @@ -813,19 +813,20 @@ public class ExecuteTheRecipe { if(!isopen) { WritePLC("水池进水阀",true,null); - } - - if(yw!=null) + }else { - Object jsf= ReadPLC("水池进水阀"); - if(jsf!=null && (boolean)jsf) + if(yw!=null ) { - new Handler().postDelayed(new Runnable() { - @Override - public void run() { - WritePLC("水池进水阀",false,null); - } - }, (int)Math.round((Double.parseDouble(ConfigName.getInstance().AutomaticWaterRefillTime) * 1000))); + Object jsf= ReadPLC("水池进水阀"); + if(jsf!=null && (boolean)jsf) + { + new Handler().postDelayed(new Runnable() { + @Override + public void run() { + WritePLC("水池进水阀",false,null); + } + }, (int)Math.round((Double.parseDouble(ConfigName.getInstance().AutomaticWaterRefillTime) * 1000))); + } } } }