wxr
2022-05-17 15066d818e8bafb36405e549328a37918a6a4be3
HDL_ON/Entity/Function/Sensor.cs
@@ -100,6 +100,7 @@
                        }
                    }
                }
                if (_intervalValue.Count > 0)
                return _intervalValue;
            }
@@ -160,6 +161,7 @@
                {
                    if (function.spk.Replace(".", "").Contains(attrKey.key.Replace(".", "")))
                    {
                        if (string.IsNullOrEmpty(attrKey.unit))
                        return attrKey.unit;
                    }
                }
@@ -205,10 +207,11 @@
                    {
                        foreach (var info in attrKey.configs)
                        {
                            _levelColorList.Add(info.color);
                            _levelColorList.Add(Convert.ToUInt32(info.color, 16));
                        }
                    }
                }
                if (_levelColorList.Count > 0)
                return _levelColorList;
            }
@@ -283,6 +286,7 @@
                        }
                    }
                }
                if (_levelTextList.Count > 0)
                return _levelTextList;
            }