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/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs
index 68f332f..03bcd7a 100644
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs
@@ -2051,7 +2051,7 @@
                     }
                     else
                     {
-                        dicSort[persentNo] = $"{(int)(info.Data1 * 1.0 / 254 * 100)}%";
+                        dicSort[persentNo] = HdlDeviceCommonLogic.Current.CalculateLightLevelPersent(info.Data1) + "%";
                     }
                 }
                 #endregion

--
Gitblit v1.8.0