revert: partial code
This commit is contained in:
parent
13092ee37a
commit
2f18605470
1 changed files with 2 additions and 2 deletions
|
@ -17,10 +17,10 @@ interface ApduInterface {
|
|||
*/
|
||||
val valid: Boolean
|
||||
|
||||
fun <T> withLogicalChannel(aid: ByteArray, callback: ((ByteArray) -> ByteArray) -> T): T {
|
||||
fun <T> withLogicalChannel(aid: ByteArray, cb: ((ByteArray) -> ByteArray) -> T): T {
|
||||
val handle = logicalChannelOpen(aid)
|
||||
return try {
|
||||
callback { tx -> transmit(handle, tx) }
|
||||
cb { transmit(handle, it) }
|
||||
} finally {
|
||||
logicalChannelClose(handle)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue