From d07d62be7111d78b2aaa44c9cdee23a7d22b4dda Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期二, 22 十二月 2020 10:38:15 +0800 Subject: [PATCH] 20201222-1 --- HDL_ON/Entity/Function/Sensor.cs | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/HDL_ON/Entity/Function/Sensor.cs b/HDL_ON/Entity/Function/Sensor.cs index 3244716..0141474 100644 --- a/HDL_ON/Entity/Function/Sensor.cs +++ b/HDL_ON/Entity/Function/Sensor.cs @@ -62,7 +62,7 @@ }; trait_values.curValue = trait_values.min; } -#if DEBUG +#if DEBUG1 //if ( Convert.ToInt32(trait_values.value) == 0) { double level = 1; @@ -90,6 +90,8 @@ #endif } + if (trait_values.curValue.ToString() == "{}") + trait_values.curValue = 0; return Convert.ToDouble(trait_values.curValue); } set -- Gitblit v1.8.0