From ab852818b685086e6b0db4b95936bd247426b815 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 01 二月 2021 16:06:56 +0800
Subject: [PATCH] 涂鸦风扇,净化器,扫地机器人整得差不多了

---
 HDL_ON/DAL/DriverLayer/Packet.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/Packet.cs b/HDL_ON/DAL/DriverLayer/Packet.cs
index 1723234..0516c25 100644
--- a/HDL_ON/DAL/DriverLayer/Packet.cs
+++ b/HDL_ON/DAL/DriverLayer/Packet.cs
@@ -437,6 +437,9 @@
                                         fh.lastState = Language.StringByID(StringId.Away);
                                         break;
                                 }
+
+                                fh.trait_IndoorTemp.curValue = receiveBytes[9] > 128 ? (1 - (receiveBytes[9] - 128)) : receiveBytes[9];
+
                                 fh.lastState += " " + fh.trait_temp.curValue + fh.tempUnitString;
                                 RoomPage.UpdataStates(fh);
                                 FunctionPage.UpdataStates(fh);

--
Gitblit v1.8.0