Skip to content

Commit

Permalink
Add a terminate function to IsoMdlPresentation for interrupted sessio…
Browse files Browse the repository at this point in the history
…ns (#40)
  • Loading branch information
rschulman authored Oct 8, 2024
1 parent 04bca18 commit ac5b584
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 ac5b584

Please sign in to comment.