From f3e65daca7978b21b5888f49b1bf35e1a6e5d4fd Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 13 七月 2020 12:33:31 +0800
Subject: [PATCH] 新版本

---
 ZigbeeApp/Shared/Phone/MainPage/ControlForm/DeviceMiniLightDetailCardForm.cs |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/MainPage/ControlForm/DeviceMiniLightDetailCardForm.cs b/ZigbeeApp/Shared/Phone/MainPage/ControlForm/DeviceMiniLightDetailCardForm.cs
index 9493372..a4001f1 100755
--- a/ZigbeeApp/Shared/Phone/MainPage/ControlForm/DeviceMiniLightDetailCardForm.cs
+++ b/ZigbeeApp/Shared/Phone/MainPage/ControlForm/DeviceMiniLightDetailCardForm.cs
@@ -123,7 +123,7 @@
             btnColorBack.X = Application.GetRealWidth(266);
             btnColorBack.Y = btnColorView.Y + btnColorView.Height / 2 - HdlControlLogic.Current.GetPictrueRealSize(20) / 2;
             frameWhiteBack.AddChidren(btnColorBack);
-            //杩涘害鏉�(+60鐨勫亸绉婚噺,鑹叉俯鐨勮寖鍥存槸 3400~6000)
+            //杩涘害鏉�(+60鐨勫亸绉婚噺,鑹叉俯鐨勮寖鍥存槸 3000~6000)
             this.seekBarColor = new SeekBarControl(611 + 120);
             seekBarColor.Y = btnLightLine.Bottom + Application.GetRealHeight(58);
             seekBarColor.X = Application.GetRealWidth(266 - 60);
@@ -137,12 +137,12 @@
             seekBarColor.ProgressTextColor = UserCenterColor.Current.TextGrayColor2;
             seekBarColor.Gravity = Gravity.Frame;
             seekBarColor.ProgressBarUnitSring = "K";
-            seekBarColor.MinValue = 34;
+            seekBarColor.MinValue = 30;
             seekBarColor.MaxValue = 60;
             frameWhiteBack.AddChidren(seekBarColor);
             //璁剧疆鍒濆鍊�
             int colorValue = ((ColorTemperatureLight)this.device).ColorTemperature;
-            if (colorValue == 0) { colorValue = 3400; }
+            if (colorValue == 0) { colorValue = 3000; }
             seekBarColor.Progress = colorValue / 100;
 
             //铚傞福鍣ㄥ紑鍏筹細
@@ -288,7 +288,8 @@
                     if (nowColorValue != oldColorValue)
                     {
                         oldColorValue = nowColorValue;
-                        ((ColorTemperatureLight)this.device).SetColorTemperature(oldColorValue * 100);
+                        int value = 1000000 / (oldColorValue * 100);
+                        ((ColorTemperatureLight)this.device).SetColorTemperature(value);
                     }
                 }
                 if (this.canSetProgressValue == true)
@@ -302,7 +303,8 @@
                     if (nowColorValue != oldColorValue)
                     {
                         //鍙戦�佽壊娓╁��
-                        ((ColorTemperatureLight)this.device).SetColorTemperature(nowColorValue * 100);
+                        int value = 1000000 / (nowColorValue * 100);
+                        ((ColorTemperatureLight)this.device).SetColorTemperature(value);
                     }
                 }
             });

--
Gitblit v1.8.0