From 0be7d5e1e2ad7db4a771ca7e93612f19ee77c71b Mon Sep 17 00:00:00 2001 From: fyf Date: Sat, 16 Dec 2023 16:53:01 +0800 Subject: [PATCH] 4 --- .../java/com/bonait/bnframework/business/ExecuteTheRecipe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 61806621..7561a290 100644 --- a/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java +++ b/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java @@ -1103,7 +1103,7 @@ public class ExecuteTheRecipe { public static void TempControl() { boolean TempBool = false; Object val_wd = ExecuteTheRecipe.getListingValue("当前锅底温度"); - int dq_wd = (int) val_wd;//当前锅底温度 + int dq_wd =val_wd==null?0: (int) val_wd;//当前锅底温度 if (dq_wd >= (ConfigName.getInstance().MaxTemp - 5)) //如果当前温度大于最大温度限制 断开 { TempBool = true;//设置断开