wxr
2024-07-16 cbc156bc38d8b8eae7aef60cb186ab2b52fa701f
HDL_ON/Entity/Function/FloorHeating.cs
@@ -71,14 +71,29 @@
        /// </summary>
        public string GetTempUnitString(Function function)
        {
            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
            {
                return tt;
                if (tt.unit == "C")
                {
                    return "°C";
                }
                else if (tt.unit == "F")
                {
                    return "°F";
                }
                else
                {
                    return tt.unit;
                }
            }
        }