Skip to content

Commit

Permalink
No need to convert to hex every iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed May 9, 2024
1 parent 8479cf3 commit 896cc5c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ object Flipper {
uid[1] xor uid[3] xor 0xAA.toByte(),
uid[2] xor uid[4] xor 0x55,
uid[3] xor uid[5] xor 0xAA.toByte(),
uid[4] xor uid[6] xor 0x55).toHex().hexFormat
uid[4] xor uid[6] xor 0x55)
}
}
134 -> {
byteArrayOf(0x80.toByte(), 0x80.toByte(), 0, 0).toHex().hexFormat
byteArrayOf(0x80.toByte(), 0x80.toByte(), 0, 0)
}
else -> {
bytes?.toHex()?.hexFormat
bytes
}
}
}?.toHex()?.hexFormat
}")
}
val nfcFile = File(directory, "$filename.nfc")
Expand Down

0 comments on commit 896cc5c

Please sign in to comment.