Commit 62088295 authored by Him188's avatar Him188

Fix packet debugger

parent 7541437e
......@@ -58,11 +58,7 @@ private fun listenDevice() {
println("sendListener started")
try {
sender.loop(999999, PacketListener {
if (it.length() == 0) {
println("EMPTY PACKET!")
}
try {
println(it.rawData.toUHexString())
dataSent(it.rawData.drop(42).toByteArray())
} catch (e: Throwable) {
e.printStackTrace()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment