Skip to content

Commit

Permalink
Add a terminate function to IsoMdlPresentation for interrupted sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
rschulman committed Oct 8, 2024
1 parent 04bca18 commit 5323a2e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ class IsoMdlPresentation(
}
}

fun terminate() {
this.bleManager!!.terminate()
}

fun updateRequestData(data: ByteArray) {
try {
this.itemsRequests = session!!.handleRequest(data)
Expand All @@ -86,4 +90,4 @@ class IsoMdlPresentation(
this.callback.error(e)
}
}
}
}

0 comments on commit 5323a2e

Please sign in to comment.