From 965290476c027deb96891cde1095d9a100581a6b Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 20 二月 2020 09:13:32 +0800
Subject: [PATCH] 2020-02-20 1.优化更新。

---
 Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs b/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs
index 91d2ce6..601ab84 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/CommonPage.cs
@@ -279,7 +279,14 @@
                                     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;

--
Gitblit v1.8.0