UsbApduInterface: Implement validity check
All checks were successful
/ build-debug (push) Successful in 4m13s
All checks were successful
/ build-debug (push) Successful in 4m13s
This commit is contained in:
parent
09a8db330b
commit
960fa6743a
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class UsbApduInterface(
|
|||
}
|
||||
|
||||
override val valid: Boolean
|
||||
get() = true
|
||||
get() = channelId != -1
|
||||
|
||||
private fun isSuccessResponse(resp: ByteArray): Boolean =
|
||||
resp.size >= 2 && resp[resp.size - 2] == 0x90.toByte() && resp[resp.size - 1] == 0x00.toByte()
|
||||
|
|
Loading…
Reference in a new issue