From a5f4bf474fddbc129708f4ddb92eaaafc6ff1f73 Mon Sep 17 00:00:00 2001
From: ningshuxia <ningshuxia0927@outlook.com>
Date: 星期二, 22 十一月 2022 17:33:18 +0800
Subject: [PATCH] 金庭电磁仪对接 未完成

---
 Socket/IStation.DataDockingSocket4SZJT_KT/helper/HandleDataHelper.cs |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/Socket/IStation.DataDockingSocket4SZJT_KT/helper/HandleDataHelper.cs b/Socket/IStation.DataDockingSocket4SZJT_KT/helper/HandleDataHelper.cs
index d2b5c4f..e7c2b09 100644
--- a/Socket/IStation.DataDockingSocket4SZJT_KT/helper/HandleDataHelper.cs
+++ b/Socket/IStation.DataDockingSocket4SZJT_KT/helper/HandleDataHelper.cs
@@ -170,7 +170,11 @@
             return list;
         }
 
-
+        public static double Bytes2Double(byte[] value, int offset = 0)
+        {
+            return BitConverter.ToSingle(value.Reverse().ToArray(), 0);//閲囩敤浜咺EEE-754浜岃繘鍒舵诞鐐规暟绠楁湳鏍囧噯
+        }
+         
         public static int Bytes2Int4(byte[] src, int offset = 0)
         {
             src = src.Reverse().ToArray();
@@ -181,12 +185,7 @@
                     | (src[offset + 3] & 0xFF));
             return value;
         }
-
-        public static double Bytes2Double(byte[] value, int offset = 0)
-        {
-            return BitConverter.ToSingle(value.Reverse().ToArray(), 0);//閲囩敤浜咺EEE-754浜岃繘鍒舵诞鐐规暟绠楁湳鏍囧噯
-        }
-         
+        
         public static int Bytes2Int32(byte[] bytes)
         {
             return Convert.ToInt32(Byte2HexStr(bytes.Reverse().ToArray()), 16); ;

--
Gitblit v1.9.3