wxr
2024-12-02 ea0b1e8e5f43c5fd0a7d479e25ede3b8cbea464a
HDL_ON/Entity/Function/AC.cs
@@ -11,14 +11,30 @@
        /// </summary>
        public string GetTempUnitString(Function function)
        {
            var tt = function.GetAttrState(FunctionAttributeKey.TempType);
            if (tt == "0")
            //var attr = function.GetAttribute(FunctionAttributeKey.TempType)
            var tt = function.GetAttribute(FunctionAttributeKey.TempType);
            if(tt == null)
            {
                return "°C";
            }
            if (tt.unit == string.Empty)
            {
                return "°C";
            }
            else
            {
                return tt;
                if (tt.unit == "C")
                {
                    return "°C";
                }
                else if (tt.unit == "F")
                {
                    return "°F";
                }
                else
                {
                    return tt.unit;
                }
            }
        }