wxr
2020-04-14 06696e6f225733a60b03eea4a7c6374053d92c1d
HDL_ON/DriverLayer/Control.cs
@@ -23,6 +23,8 @@
        /// <returns></returns>
        public static void Send(CommandType_A commandType, Function function)
        {
            function.usageCount++;
            function.refreshTime = DateTime.Now;
            if (function.bus_Data!=null)
            {
                try
@@ -185,9 +187,14 @@
                                        break;
                                }
                                break;
                            case FunctionCategory.AC:
                            case FunctionCategory.Thermostat:
                                switch (function.functionType)
                                {
                                    case FunctionType.AC:
                                var aC = function as AC;
                                ControlBytesSend(Command.SetACMode, subnetId, deviceId, new byte[] { aC.bus_Data.LoopID, (byte)aC.curTempType, 32, 32, 32, 32, 32, 0, aC.on_off == "on" ? (byte)1 : (byte)0, aC.curModeIndex, aC.curFanIndex, (byte)aC.curTemp, 0 });
                                        break;
                                }
                                break;
                        }
                        break;
@@ -216,12 +223,17 @@
                                        break;
                                }
                                break;
                            case FunctionCategory.AC:
                            case FunctionCategory.Thermostat:
                                switch (function.functionType)
                                {
                                    case FunctionType.AC:
                                ControlBytesSend(Command.ReadACMode, subnetId, deviceId, new byte[] {function.bus_Data.LoopID });
                                break;
                        }
                        break;
                }
                        break;
                }
            }
            catch (Exception ex)
            {