From b17efec8d4a26768ac2821e6b9038560c19a70bc Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 08 三月 2021 10:07:14 +0800
Subject: [PATCH] 2021-3-8-2
---
HDL_ON/DAL/DriverLayer/Packet.cs | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/HDL_ON/DAL/DriverLayer/Packet.cs b/HDL_ON/DAL/DriverLayer/Packet.cs
index 1723234..2a4ae74 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);
@@ -620,8 +623,7 @@
{
//鏈湴鎼滅储缃戝叧鎴愬姛
Control.Ins.IsSearchLocalGatewaySuccessful = true;
- Control.Ins.GatewayOnline = true;
- Control.Ins.IsRemote = false;
+ Control.Ins.GatewayOnline_Local = true;
DAL.Mqtt.MqttClient.DisConnectRemote();//鏂紑mqtt
}
break;
--
Gitblit v1.8.0