From 2f30d9dfe474db862e1b409065a7ba5280bed92b Mon Sep 17 00:00:00 2001 From: tangxu <76880903@qq.com> Date: 星期一, 31 十月 2022 14:18:44 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/IStation/Service.V4.1 --- Socket/IStation.DataDockingSocket4NT/MsgHandle/MonitorMsgHelper.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Socket/IStation.DataDockingSocket4NT/MsgHandle/MonitorMsgHelper.cs b/Socket/IStation.DataDockingSocket4NT/MsgHandle/MonitorMsgHelper.cs index 7388d42..a3c3a6b 100644 --- a/Socket/IStation.DataDockingSocket4NT/MsgHandle/MonitorMsgHelper.cs +++ b/Socket/IStation.DataDockingSocket4NT/MsgHandle/MonitorMsgHelper.cs @@ -66,7 +66,7 @@ return new byte[] { 0x01, 0x03, 0x00, 0x12, 0x00, 0x04, 0xE4, 0x0C }; } - + @@ -136,7 +136,7 @@ SysId = 1575030435430404096, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = (ByteMsgHelper.GetInt2Byte(byteMessage, 3 + (29 - start) * 2, out msg) * 0.001).ToString() + SrcValue = ((ByteMsgHelper.GetInt2Byte(byteMessage, 3 + (29 - start) * 2, out msg) * 0.001) * -1).ToString() }); //A鐩哥數鍘� @@ -297,7 +297,7 @@ SysId = 1584475756476633088, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = Math.Round(ByteMsgHelper.GetDouble1(byteMessage, 3 + (56 - start) * 2, out msg), 2).ToString() + SrcValue = Math.Round((ByteMsgHelper.GetDouble1(byteMessage, 3 + (56 - start) * 2, out msg) * 0.001), 2).ToString() }); } catch (Exception err) -- Gitblit v1.9.3