| | |
| | | //} |
| | | //Control.ControlBytesSend (Command.SetSingleLight, fanModule.SubnetID, fanModule.DeviceID, new byte [] { fanModule.LoopID, fanModule.Switch }); |
| | | |
| | | int mSetSwitch = tempSwitch.IsSelected ? 0 : fanModule.WindSpeed; |
| | | int mSetSwitch = 0; |
| | | if (!tempSwitch.IsSelected) { |
| | | //2021-03-02 修复开0档问题 |
| | | if (fanModule.WindSpeed == 0) { |
| | | mSetSwitch = 1; |
| | | } else { |
| | | mSetSwitch = fanModule.WindSpeed; |
| | | } |
| | | } else { |
| | | mSetSwitch = 0; |
| | | } |
| | | |
| | | SendControl.SendControlSetSingleLight (fanModule, new byte [] { fanModule.LoopID, (byte)mSetSwitch }); |
| | | //IO.FileUtils.SaveEquipmentMessage (fanModule, fanModule.LoopID.ToString ()); |
| | | }; |