Skip to content

Commit 1a0bfbb

Browse files
committed
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.
1 parent 02fd834 commit 1a0bfbb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/eu/darken/capod/pods/core/apple/aap/AapConnection.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ internal class AapConnection(
276276
sock.outputStream.write(bytes)
277277
sock.outputStream.flush()
278278
if (command is AapCommand.SetAncMode) lastAncCommandSentAt = timeSource.currentTimeMillis()
279-
log(TAG) { "Sent command: $command (${bytes.size} bytes)" }
279+
val hex = bytes.joinToString(" ") { "%02X".format(it) }
280+
log(TAG, VERBOSE) { "SEND cmd=$command len=${bytes.size} raw=$hex" }
280281
}
281282
}
282283
}

0 commit comments

Comments
 (0)