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:
darken
2026-04-14 16:07:29 +02:00
committed by Matthias Urhahn
parent 02fd83440b
commit 1a0bfbb3f4
@@ -276,7 +276,8 @@ internal class AapConnection(
sock.outputStream.write(bytes)
sock.outputStream.flush()
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" }
}
}
}