Skip to content

Commit

Permalink
fix: correct conversion to bytes
Browse files Browse the repository at this point in the history
Signed-off-by: Berend Sliedrecht <[email protected]>
  • Loading branch information
berendsliedrecht committed Nov 8, 2024
1 parent 6a9a80d commit 0f948b3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class MdocDataTransferModule : Module() {
Log.d("ABBA", "cheese")
mDocDataTransfer?.apply {
onQrEngagementReady = { qrCode ->
Log.d("ABBA", "${qrCode}")
promise.resolve(qrCode)
onQrEngagementReady = null
}
Expand All @@ -52,7 +51,7 @@ class MdocDataTransferModule : Module() {

Function("sendDeviceResponse") { deviceResponse: String ->
(mDocDataTransfer ?: throw MdocDataTransferException.NotInitialized()).respond(
deviceResponse.split(":").map { it.toByte() }.toByteArray()
deviceResponse.split(":").map { it.toUInt().toByte() }.toByteArray()
)
}

Expand Down

0 comments on commit 0f948b3

Please sign in to comment.