mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-16 11:16:12 -04:00
refactor(aap): Log outgoing AAP commands with raw hex at VERBOSE
Mirrors the existing incoming MSG log so a full transcript can verify round-trips for settings the device doesn't echo back.
This commit is contained in:
@@ -276,7 +276,8 @@ internal class AapConnection(
|
|||||||
sock.outputStream.write(bytes)
|
sock.outputStream.write(bytes)
|
||||||
sock.outputStream.flush()
|
sock.outputStream.flush()
|
||||||
if (command is AapCommand.SetAncMode) lastAncCommandSentAt = timeSource.currentTimeMillis()
|
if (command is AapCommand.SetAncMode) lastAncCommandSentAt = timeSource.currentTimeMillis()
|
||||||
log(TAG) { "Sent command: $command (${bytes.size} bytes)" }
|
val hex = bytes.joinToString(" ") { "%02X".format(it) }
|
||||||
|
log(TAG, VERBOSE) { "SEND cmd=$command len=${bytes.size} raw=$hex" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user