From f14dcfd967404e197e7ec995ca8d6f2b090d3b7d Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期五, 11 九月 2020 09:16:59 +0800 Subject: [PATCH] 优化多功能面板:绑定温湿度传感器目标,和设备列表回路显示。优化数据矫正功能温湿度度不设置的情况。优化门锁时间设置最后一天和最后最后一个月的时间显示等 细节 --- ZigbeeApp/Shared/Phone/ZigBee/Common/OwnCodes.cs | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Common/OwnCodes.cs b/ZigbeeApp/Shared/Phone/ZigBee/Common/OwnCodes.cs index f17793b..4ebcf61 100755 --- a/ZigbeeApp/Shared/Phone/ZigBee/Common/OwnCodes.cs +++ b/ZigbeeApp/Shared/Phone/ZigBee/Common/OwnCodes.cs @@ -6,6 +6,18 @@ public class OwnCodes { + /// <summary> + /// 灏哛GB杞崲涓洪鑹层�傘�傘�� + /// </summary> + /// <param name="R"></param> + /// <param name="G"></param> + /// <param name="B"></param> + /// <returns></returns> + private uint GetColorByRGB(byte R, byte G, byte B) + { + return (uint)(0xFF000000 + R * 256 * 256 + G * 256 + B); + } + #region set/get [Newtonsoft.Json.JsonIgnore] /// <summary> -- Gitblit v1.8.0