HDL_ON/Entity/Function/AC.cs
@@ -12,24 +12,28 @@ public string GetTempUnitString(Function function) { //var attr = function.GetAttribute(FunctionAttributeKey.TempType) var tt = function.GetAttrState(FunctionAttributeKey.TempType); if (tt == "0") var tt = function.GetAttribute(FunctionAttributeKey.TempType); if(tt == null) { return "°C"; } if (tt.unit == string.Empty) { return "°C"; } else { if (tt == "C") if (tt.unit == "C") { return "°C"; } else if (tt == "F") else if (tt.unit == "F") { return "°F"; } else { return tt; return tt.unit; } } }