riku
2020-07-15 25d0f31f22f77a914a50bbc088902e00e28c4889
src/main/kotlin/com/flightfeather/uav/socket/ServerHandler.kt
@@ -31,8 +31,7 @@
        if (msg is ByteArray) {
            println("------收到的原始数据:[ip:${ctx?.channel()?.remoteAddress()}] ${SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Date())}")
            msg.forEach {
                var a = 0
                a = if (it < 0) {
                val a: Int = if (it < 0) {
                    it + 256
                } else {
                    it.toInt()