HDL_ON/DAL/DriverLayer/Control.cs
@@ -178,14 +178,6 @@
            }
        }
        ///// <summary>
        ///// 改变通讯方式
        ///// </summary>
        //public void ChangeCommunicationMode(CommunicationMode communicationMode)
        //{
        //    this.communicationMode = communicationMode;
        //}
        /// <summary>
        /// 搜索本地网关列表
        /// </summary>
@@ -240,7 +232,6 @@
                })
                { IsBackground = true }.Start();
            }
        }
        /// <summary>
@@ -274,6 +265,21 @@
            function.usageCount++;
            function.refreshTime = DateTime.Now;
            //如果是控制调光的开时,亮度值不能为0
            if (commandDictionary.Count > 2)
            {
                if (commandDictionary.ContainsKey(FunctionAttributeKey.OnOff) && commandDictionary.ContainsKey(FunctionAttributeKey.Brightness))
                {
                    if (commandDictionary[FunctionAttributeKey.OnOff] == "on")
                    {
                        if (commandDictionary[FunctionAttributeKey.Brightness] == "0")
                        {
                            commandDictionary[FunctionAttributeKey.Brightness] = "100";
                        }
                    }
                }
            }
            //远程通讯
            if (Ins.IsRemote)
            {