Compare commits
1 commit
ce6b78d045
...
9ddfd62030
Author | SHA1 | Date | |
---|---|---|---|
9ddfd62030 |
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ fun getESTKmeInfo(iface: ApduInterface): ESTKmeInfo? {
|
||||||
return b.sliceArray(0 until b.size - 2).decodeToString()
|
return b.sliceArray(0 until b.size - 2).decodeToString()
|
||||||
}
|
}
|
||||||
return try {
|
return try {
|
||||||
iface.withLogicalChannel("A06573746B6D65FFFFFFFFFFFF6D6774".decodeHex()) { transmit ->
|
iface.openChannel("A06573746B6D65FFFFFFFFFFFF6D6774".decodeHex()) {
|
||||||
fun invoke(p1: Byte) = decode(transmit(byteArrayOf(0x00, 0x00, p1, 0x00, 0x00)))
|
fun invoke(p1: Byte) = decode(it.transmit(byteArrayOf(0x00, 0x00, p1, 0x00, 0x00)))
|
||||||
ESTKmeInfo(
|
ESTKmeInfo(
|
||||||
invoke(0x00), // serial number
|
invoke(0x00), // serial number
|
||||||
invoke(0x01), // bootloader version
|
invoke(0x01), // bootloader version
|
||||||
|
|
Loading…
Add table
Reference in a new issue