Commit 7b082c3 1 parent d6219c2 commit 7b082c3 Copy full SHA for 7b082c3
File tree 2 files changed +7
-3
lines changed
Sources/SpeziBluetooth/Model/Properties
Tests/SpeziBluetoothServicesTests
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,11 @@ public struct Characteristic<Value: Sendable>: Sendable {
321
321
322
322
storage. state. characteristic = service? . getCharacteristic ( id: storage. id)
323
323
324
+ #if compiler(<6)
325
+ var defaultNotify : Bool = false
326
+ #else
324
327
let defaultNotify : Bool
328
+ #endif
325
329
while true {
326
330
let notifyState = storage. defaultNotify. load ( ordering: . acquiring)
327
331
let notify = notifyState. defaultNotify
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ final class CurrentTimeTests: XCTestCase {
36
36
}
37
37
38
38
let date = try XCTUnwrap ( now. date)
39
- service. synchronizeDeviceTime ( now: date)
39
+ try await service. synchronizeDeviceTime ( now: date)
40
40
41
41
await fulfillment ( of: [ writeExpectation] )
42
42
try await Task . sleep ( for: . milliseconds( 500 ) ) // let task complete
@@ -56,7 +56,7 @@ final class CurrentTimeTests: XCTestCase {
56
56
}
57
57
58
58
let date = try XCTUnwrap ( now. date)
59
- service. synchronizeDeviceTime ( now: date, threshold: . seconds( 8 ) )
59
+ try await service. synchronizeDeviceTime ( now: date, threshold: . seconds( 8 ) )
60
60
61
61
await fulfillment ( of: [ writeExpectation] )
62
62
try await Task . sleep ( for: . milliseconds( 500 ) ) // let task complete
@@ -77,7 +77,7 @@ final class CurrentTimeTests: XCTestCase {
77
77
}
78
78
79
79
let date = try XCTUnwrap ( now. date)
80
- service. synchronizeDeviceTime ( now: date)
80
+ try await service. synchronizeDeviceTime ( now: date)
81
81
82
82
await fulfillment ( of: [ writeExpectation] , timeout: 1 )
83
83
try await Task . sleep ( for: . milliseconds( 500 ) ) // let task complete
You can’t perform that action at this time.
0 commit comments