From 449ba5b5c6bb1cfccd7e1e5d7b7696e41c5064b0 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 14 七月 2020 17:15:28 +0800
Subject: [PATCH] 2020-07-14-2

---
 HDL_ON/DriverLayer/Control.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/DriverLayer/Control.cs b/HDL_ON/DriverLayer/Control.cs
index b248598..b3751c1 100644
--- a/HDL_ON/DriverLayer/Control.cs
+++ b/HDL_ON/DriverLayer/Control.cs
@@ -292,6 +292,11 @@
                                         break;
                                 }
                                 break;
+                            case FunctionCategory.Sensor:
+                                var sensor = function as Sensor;
+                                ControlBytesSend(Command.ReadDeviceLoopInfo, subnetId, deviceId, new byte[] { (byte)5,
+                                            (byte)((int)sensor.functionType % 256), sensor.bus_Data.LoopID });
+                                break;
                         }
                         break;
                 }

--
Gitblit v1.8.0