From 87d8d4adb1dd948c2beebdc9c4b84a7d426b60cc Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期一, 25 九月 2023 10:55:08 +0800
Subject: [PATCH] 2023年09月25日10:54:27
---
HDL_ON/Entity/Function/Sensor.cs | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/HDL_ON/Entity/Function/Sensor.cs b/HDL_ON/Entity/Function/Sensor.cs
index aff130f..b232cab 100644
--- a/HDL_ON/Entity/Function/Sensor.cs
+++ b/HDL_ON/Entity/Function/Sensor.cs
@@ -78,12 +78,23 @@
function.SetAttrState(FunctionAttributeKey.Value, value);
}
+ List<string> _intervalValue = new List<string>();
+
+ public void SetIntervalValue(List<string> intervalValue)
+ {
+ _intervalValue = intervalValue;
+ }
+
/// <summary>
/// 姣忎釜绛夌骇瀵瑰尯闂村��
/// </summary>
public List<string> GetIntervalValue(string spk)
{
- var _intervalValue = new List<string>();
+ if(_intervalValue.Count != 0)
+ {
+ return _intervalValue;
+ }
+ _intervalValue = new List<string>();
switch (spk)
{
case SPK.SensorPm25:
@@ -148,7 +159,7 @@
switch (function.spk)
{
case SPK.SensorPm25:
- unit = "ug/m虏";
+ unit = "ug/m鲁";
break;
case SPK.SensorTemperature:
unit = "掳C";
--
Gitblit v1.8.0