Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivecstel committed Mar 7, 2021
1 parent 9ccbf58 commit 43ffba2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions blekotlin/src/main/java/com/steleot/blekotlin/BleClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ object BleClient : BleReceiver.BleReceiverListener, BleDefaultScanCallback.BleSc
}

private fun stopBleScanInternal() {
if (bleAdapter == null) {
bleLogger.log(TAG, "BleAdapter is null. Check status first before...")
return
}
bleLogger.log(TAG, "Stopping Ble scanning")
if (bleAdapter!!.bluetoothLeScanner != null) {
bleAdapter!!.bluetoothLeScanner?.stopScan(bleScanCallback)
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/PublishLibrary.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
object PublishLibrary {
const val artifactName = "blekotlin"
const val artifactGroup = "com.steleot.blekotlin"
const val artifactVersion = "0.7.1"
const val artifactVersion = "0.7.2"
const val pomUrl = "https://github.com/Vivecstel/ble-kotlin"
const val pomVcsUrl = "https://github.com/Vivecstel/ble-kotlin.git"
const val pomDesc = "Small android ble library with coroutines and flows"
Expand Down

0 comments on commit 43ffba2

Please sign in to comment.