Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/octokit/request-8.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7061 authored Feb 19, 2025
2 parents 17fcdee + a1560f3 commit bbf491f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@ class AbrevvaBleModule(reactContext: ReactApplicationContext) :
}

val macFilter: String? = options.getString("macFilter")
val allowDuplicates: Boolean = options.getBoolean("allowDuplicates")

var allowDuplicates = false
try {
allowDuplicates = options.getBoolean("allowDuplicates")
} catch (_: Exception) {
}

this.manager.startScan(
{ device: BleDevice ->
reactApplicationContext.emitDeviceEvent("onScanResult", getBleDeviceData(device))
Expand Down

0 comments on commit bbf491f

Please sign in to comment.