Ver código fonte

122121212

茶饮新(现场)
fyf 1 ano atrás
pai
commit
66774a3f57
1 arquivos alterados com 12 adições e 11 exclusões
  1. +12
    -11
      app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java

+ 12
- 11
app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java Ver arquivo

@@ -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)));
}
}
}
}


Carregando…
Cancelar
Salvar