UsbCcidTransceiver: Stop spamming logs
All checks were successful
/ build-debug (push) Successful in 4m8s
All checks were successful
/ build-debug (push) Successful in 4m8s
This commit is contained in:
parent
083ee03f8e
commit
c7afeea845
1 changed files with 0 additions and 6 deletions
|
@ -172,13 +172,11 @@ class UsbCcidTransceiver(
|
|||
* if things really turn sour.
|
||||
*/
|
||||
var attempts = 3
|
||||
Log.d(TAG, "Receive data block immediate seq=$expectedSequenceNumber")
|
||||
var readBytes: Int
|
||||
do {
|
||||
readBytes = usbConnection.bulkTransfer(
|
||||
usbBulkIn, inputBuffer, inputBuffer.size, DEVICE_COMMUNICATE_TIMEOUT_MILLIS
|
||||
)
|
||||
Log.d(TAG, "Received " + readBytes + " bytes: " + inputBuffer.encodeHex())
|
||||
} while (readBytes <= 0 && attempts-- > 0)
|
||||
if (readBytes < CCID_HEADER_LENGTH) {
|
||||
throw UsbTransportException("USB-CCID error - failed to receive CCID header")
|
||||
|
@ -230,9 +228,6 @@ class UsbCcidTransceiver(
|
|||
ignoredBytes = usbConnection.bulkTransfer(
|
||||
usbBulkIn, inputBuffer, inputBuffer.size, DEVICE_SKIP_TIMEOUT_MILLIS
|
||||
)
|
||||
if (ignoredBytes > 0) {
|
||||
Log.e(TAG, "Skipped $ignoredBytes bytes")
|
||||
}
|
||||
} while (ignoredBytes > 0)
|
||||
}
|
||||
|
||||
|
@ -279,7 +274,6 @@ class UsbCcidTransceiver(
|
|||
}
|
||||
val ccidDataBlock = receiveDataBlock(sequenceNumber)
|
||||
val elapsedTime = SystemClock.elapsedRealtime() - startTime
|
||||
Log.d(TAG, "USB XferBlock call took " + elapsedTime + "ms")
|
||||
return ccidDataBlock
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue