mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Fix packet debugger
This commit is contained in:
parent
7541437e31
commit
620882957a
@ -58,11 +58,7 @@ private fun listenDevice() {
|
|||||||
println("sendListener started")
|
println("sendListener started")
|
||||||
try {
|
try {
|
||||||
sender.loop(999999, PacketListener {
|
sender.loop(999999, PacketListener {
|
||||||
if (it.length() == 0) {
|
|
||||||
println("EMPTY PACKET!")
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
println(it.rawData.toUHexString())
|
|
||||||
dataSent(it.rawData.drop(42).toByteArray())
|
dataSent(it.rawData.drop(42).toByteArray())
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
|
Loading…
Reference in New Issue
Block a user