From 35a2888945bcf1b7ef6f34d30f1709b9c848fce6 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 16 十二月 2020 15:17:18 +0800 Subject: [PATCH] 111 --- HDL_ON/Entity/Function/FloorHeating.cs | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Entity/Function/FloorHeating.cs b/HDL_ON/Entity/Function/FloorHeating.cs index 6c02ad6..f218595 100644 --- a/HDL_ON/Entity/Function/FloorHeating.cs +++ b/HDL_ON/Entity/Function/FloorHeating.cs @@ -186,6 +186,11 @@ _trait_IndoorTemp.curValue = 0; } } + //if (_trait_IndoorTemp.curValue.ToString().Length > 3) + { + var vv = Convert.ToDouble(_trait_IndoorTemp.curValue); + _trait_IndoorTemp.curValue = Convert.ToInt32(vv); + } return _trait_IndoorTemp; } } @@ -219,6 +224,11 @@ if(_trait_temp.curValue.ToString() == "{}") _trait_temp.curValue = 16; } + //if (_trait_temp.curValue.ToString().Length > 3) + { + var vv = Convert.ToDouble(_trait_temp.curValue); + _trait_temp.curValue = Convert.ToInt32(vv); + } return _trait_temp; } } -- Gitblit v1.8.0