From 43110ef19b9e69d5afd7ce0a978565786baa87b5 Mon Sep 17 00:00:00 2001 From: lss <lsc@hdlchina.com.cn> Date: 星期三, 27 四月 2022 14:13:53 +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