Skip to content

Commit 0d92d3f

Browse files
committed
Updated dependencies
1 parent d0e66a6 commit 0d92d3f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/AndroidBluetooth/AndroidCentral.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ public final class AndroidCentral: CentralManager {
9696
else { throw AndroidCentralError.bluetoothDisabled }
9797

9898
// check permission
99-
let permission = try Permission(rawValue: JavaClass<Manifest.Permission>().BLUETOOTH_SCAN)
100-
try checkPermission(permission)
99+
try checkPermission(.bluetoothScan)
101100

102101
return .init(onTermination: {
103102
Task {

0 commit comments

Comments
 (0)