| | |
| | | hadBeUpdate = false; |
| | | (common as LightDimming).CurrentBrightness = usefullBytes [2]; |
| | | } else if (common.Type == DeviceType.FanModule) { |
| | | //if ((common as FanModule).Switch == usefullBytes [2]) { |
| | | // hadBeUpdate = false; |
| | | //} |
| | | (common as FanModule).Switch = usefullBytes [2]; |
| | | if (usefullBytes [2] != 0) |
| | | (common as FanModule).WindSpeed = usefullBytes [2]; |
| | | |
| | | //(common as FanModule).Switch = usefullBytes [2]; |
| | | } else if (common.Type == DeviceType.LightMixSwitch) { |
| | | if ((common as LightMixSwitch).CurrentBrightness == usefullBytes [2]) |
| | | hadBeUpdate = false; |