Skip to content

Commit

Permalink
Fixed CentralManager.log
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 15, 2024
1 parent c41faee commit 13bd4d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/DarwinGATT/DarwinCentral.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public final class DarwinCentral: CentralManager, ObservableObject, @unchecked S

// MARK: - Properties

public var log: ((String) -> ())?
public var log: (@Sendable (String) -> ())?

public let options: Options

Expand Down
2 changes: 1 addition & 1 deletion Sources/GATT/CentralProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public protocol CentralManager: AnyObject {
associatedtype Data: DataContainer

/// Logging
var log: ((String) -> ())? { get set }
var log: (@Sendable (String) -> ())? { get set }

/// Currently scanned devices, or restored devices.
var peripherals: [Peripheral: Bool] { get async }
Expand Down
4 changes: 2 additions & 2 deletions Sources/GATT/GATTCentral.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public final class GATTCentral <HostController: BluetoothHostControllerInterface
public typealias Advertisement = LowEnergyAdvertisingData

public typealias AttributeID = UInt16
public var log: ((String) -> ())?

public var log: (@Sendable (String) -> ())?

public let hostController: HostController

Expand Down

0 comments on commit 13bd4d1

Please sign in to comment.