Fix packet debugger

This commit is contained in:
Him188 2019-11-10 21:48:03 +08:00
parent 7541437e31
commit 620882957a

View File

@ -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()