From 9523ea8fc874c27ad1369c076de59c00bbc5d470 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 15 十月 2024 16:06:11 +0800 Subject: [PATCH] 空调功能更新 --- HDL_ON/DAL/DriverLayer/Packet.cs | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/HDL_ON/DAL/DriverLayer/Packet.cs b/HDL_ON/DAL/DriverLayer/Packet.cs index dc75315..2cf06d7 100644 --- a/HDL_ON/DAL/DriverLayer/Packet.cs +++ b/HDL_ON/DAL/DriverLayer/Packet.cs @@ -344,9 +344,9 @@ break; case Command.SetACModeACK: case Command.ReadACModeACK: - foreach (var function in FunctionList.List.Functions) + foreach (var function in FunctionList.List.GetAcList()) { - if (function.bus == null || function.spk != SPK.AcStandard) + if (function.bus == null) { continue; } @@ -355,9 +355,12 @@ function.bus.DeviceID == deviceID && function.bus.LoopId == receiveBytes[0]) { - Console.WriteLine(function.GetBusId()); function.SetAttrState(FunctionAttributeKey.TempType, receiveBytes[1].ToString()); function.SetAttrState(FunctionAttributeKey.RoomTemp, receiveBytes[2].ToString()); + function.SetAttrState(FunctionAttributeKey.CoolTemperatrue, receiveBytes[3].ToString()); + function.SetAttrState(FunctionAttributeKey.HeatTemperatrue, receiveBytes[4].ToString()); + function.SetAttrState(FunctionAttributeKey.AutoTemperatrue, receiveBytes[5].ToString()); + function.SetAttrState(FunctionAttributeKey.DehumiTemperatrue, receiveBytes[6].ToString()); function.SetAttrState(FunctionAttributeKey.OnOff, receiveBytes[8] == 1 ? "on" : "off"); acFunction.SetMode(receiveBytes[9], function); acFunction.SetFan(receiveBytes[10], function); -- Gitblit v1.8.0