android: do not log writeRaw in ATTManager if socket unavailable

This commit is contained in:
Kavish Devar
2026-04-28 12:03:51 +05:30
parent e39c1cfeba
commit 136e3e8995

View File

@@ -172,6 +172,7 @@ class ATTManager(private val adapter: BluetoothAdapter, private val device: Blue
}
private fun writeRaw(pdu: ByteArray) {
if (output == null) return
output?.write(pdu)
output?.flush()
Log.d(TAG, "writeRaw: ${pdu.joinToString(" ") { String.format("%02X", it) }}")