黄学彪
2020-03-23 cc0d80c7d86c6d0167269b3408c4b30c24ce84e9
ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitSettionForm.cs
@@ -137,7 +137,7 @@
            rowBeloneArea.AddBottomLine();
            rowBeloneArea.SelectRoomEvent += (roomKeys) =>
            {
                Common.Room.CurrentRoom.ChangedRoom(deviceAc, roomKeys);
                HdlRoomLogic.Current.ChangedRoom(deviceAc, roomKeys);
            };
            //空调模式
@@ -167,7 +167,7 @@
            {
                //不能再点击
                btnSwingSwitch.CanClick = false;
                string statu = btnSwingSwitch.IsSelected == true ? "1" : "0";
                string statu = btnSwingSwitch.IsSelected == true ? "0" : "1";
                //将二进制转换为十进制
                int sendData = Convert.ToInt32(this.fixValue + statu, 2);
                HdlThreadLogic.Current.RunThread(async () =>
@@ -280,7 +280,7 @@
                        //转换为二进制
                        var value = Convert.ToString(data.AttriButeData, 2).PadLeft(16, '0');
                        //这个设置是放在后面的
                        this.fixValue = value.Substring(0, value.Length - 15);
                        this.fixValue = value.Substring(0, value.Length - 1);
                        this.swingMode = Convert.ToInt32(value.Substring(this.fixValue.Length));
                    }
                }