Skip to content

Commit ff6308d

Browse files
c0diqminixT
authored andcommitted
Fix L2CAP API to support OSX 10.14 (#345)
1 parent 7b77989 commit ff6308d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Source/Peripheral.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,7 @@ public class Peripheral {
829829
/// * `BluetoothError.bluetoothPoweredOff`
830830
/// * `BluetoothError.bluetoothInUnknownState`
831831
/// * `BluetoothError.bluetoothResetting`
832-
#if os(iOS) || os(tvOS) || os(watchOS)
833-
@available(iOS 11, tvOS 11, watchOS 4, *)
832+
@available(iOS 11, macOS 10.14, tvOS 11, watchOS 4, *)
834833
public func openL2CAPChannel(PSM: CBL2CAPPSM) -> Single<CBL2CAPChannel> {
835834
let observable = delegateWrapper
836835
.peripheralDidOpenL2CAPChannel
@@ -849,7 +848,6 @@ public class Peripheral {
849848
self?.peripheral.openL2CAPChannel(PSM)
850849
}).asSingle()
851850
}
852-
#endif
853851

854852
// MARK: Internal functions
855853

0 commit comments

Comments
 (0)