From 070005ffba3ce5cb80e27448bca668aa25edee62 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 11 六月 2021 17:02:51 +0800
Subject: [PATCH] 1. 新增走航任务增删改查相关功能 2. 新增无人船数据excel导入功能 3. 优化多参数接收逻辑,解决单个数据头导致数据包结构判断错误问题

---
 src/main/kotlin/com/flightfeather/uav/socket/decoder/impl/DataUnitDecoderImpl.kt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/uav/socket/decoder/impl/DataUnitDecoderImpl.kt b/src/main/kotlin/com/flightfeather/uav/socket/decoder/impl/DataUnitDecoderImpl.kt
index a5ffbd5..3290fa7 100644
--- a/src/main/kotlin/com/flightfeather/uav/socket/decoder/impl/DataUnitDecoderImpl.kt
+++ b/src/main/kotlin/com/flightfeather/uav/socket/decoder/impl/DataUnitDecoderImpl.kt
@@ -89,10 +89,10 @@
                 }
                 FactorType.TIME -> {
                     val year = b[i].toInt(16).toString().run { numberFormat(this) }
-                    val month = b[i+1].toInt(16).toString().run { numberFormat(this) }
-                    val day = b[i+2].toInt(16).toString().run { numberFormat(this) }
-                    val hour = b[i+3].toInt(16).toString().run { numberFormat(this) }
-                    val minute = b[i+4].toInt(16).toString().run { numberFormat(this) }
+                    val month = b[i + 1].toInt(16).toString().run { numberFormat(this) }
+                    val day = b[i + 2].toInt(16).toString().run { numberFormat(this) }
+                    val hour = b[i + 3].toInt(16).toString().run { numberFormat(this) }
+                    val minute = b[i + 4].toInt(16).toString().run { numberFormat(this) }
                     val second = b[i + 5].toInt(16).toString().run { numberFormat(this) }
                     val date = "20$year-$month-$day $hour:$minute:$second"
                     val time = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(date).time

--
Gitblit v1.9.3