Crabtree/SmartHome/UI/SimpleControl/Phone/Light/UserDeviceToLight.cs
@@ -230,6 +230,8 @@
            });
            //Utlis.WriteLine ("U1");
        }
        private readonly object SendLocker = new object ();
        bool showTip = true;
        /// <summary>
        /// 控制所有的灯
@@ -263,7 +265,11 @@
                                || common.Type == DeviceType.LightMixDimming || common.Type == DeviceType.LightMixSwitch || common.Type == DeviceType.LightDALI) {
                               new System.Threading.Thread (() => {
                                    try {
                                        lock (SendLocker) {
                                   mSendCount++;
                                        }
                                        //mSendCount++;
                                   if (common.Type == DeviceType.LightDimming || common.Type == DeviceType.LightDALI) {
                                       var light = (LightDimming)common;
@@ -332,7 +338,12 @@
                                       }
                                   }
                                        //mSendCount--;
                                    } catch { } finally {
                                        lock (SendLocker) {
                                   mSendCount--;
                                        }
                                    }
                               }) { IsBackground = true }.Start();
                                //等待100ms再发送第二个设备数据