陈嘉乐
2020-11-30 ed3bfb7462d44747230437717e8673a5192f833f
HDL_ON/DriverLayer/Target.cs
File was renamed from HDL_ON/DAL/DriverLayer/Target.cs
@@ -3,11 +3,10 @@
using System.Text;
using HDL_ON.Entity;
namespace HDL_ON.DriverLayer
namespace HDL_ON
{
    /// <summary>
    /// 控制数据包头
    /// bus数据包头
    /// 控制数据
    /// </summary>
    public class Target
    {
@@ -72,7 +71,7 @@
                    bytes [15] = 0xAA;
                    bytes [16] = (byte)(11 + AddData.Length);
                    bytes [17] = 0; //源子网号
                    bytes [17] = 252; //源子网号
                    bytes [18] = 252; //源设备号
                    bytes [19] = (byte)(deviceType/256);
                    bytes [20] = (byte)(deviceType%256);
@@ -114,7 +113,7 @@
                    bytes [15] = 0xAA;
                    bytes [16] = 0xFF;//数据包长度
                    bytes [17] = 0;//源子网号
                    bytes [17] = 252;//源子网号
                    bytes [18] = 252;//源设备号
                    bytes [19] = (byte)(deviceType/256);
                    bytes [20] = (byte)(deviceType%256);