diff --git a/cue-ios/CueIOS/BLE/BLEManager.swift b/cue-ios/CueIOS/BLE/BLEManager.swift index adf9f16..abe9663 100644 --- a/cue-ios/CueIOS/BLE/BLEManager.swift +++ b/cue-ios/CueIOS/BLE/BLEManager.swift @@ -8,8 +8,8 @@ import Foundation @Observable final class BLEManager: NSObject { - static let midiServiceUUID = CBUUID(string: "03B80E5A-EDE8-4B33-A751-6CE34EC4C700") - static let midiCharUUID = CBUUID(string: "7772E5DB-3868-4112-A1A9-F2669D106BF3") + nonisolated(unsafe) static let midiServiceUUID = CBUUID(string: "03B80E5A-EDE8-4B33-A751-6CE34EC4C700") + nonisolated(unsafe) static let midiCharUUID = CBUUID(string: "7772E5DB-3868-4112-A1A9-F2669D106BF3") enum ConnectionState: String { case disconnected = "Disconnected" diff --git a/cue-ios/CueIOS/Info.plist b/cue-ios/CueIOS/Info.plist index fe3304e..e968a82 100644 --- a/cue-ios/CueIOS/Info.plist +++ b/cue-ios/CueIOS/Info.plist @@ -2,6 +2,18 @@ + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleName + $(PRODUCT_NAME) + CFBundleVersion + 1 + CFBundleShortVersionString + 1.0 + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundlePackageType + APPL NSBluetoothAlwaysUsageDescription EIS4 uses Bluetooth to communicate with the impedance analyzer UIBackgroundModes diff --git a/cue-ios/CueIOS/Models/Storage.swift b/cue-ios/CueIOS/Models/Storage.swift index fe1450f..9474086 100644 --- a/cue-ios/CueIOS/Models/Storage.swift +++ b/cue-ios/CueIOS/Models/Storage.swift @@ -43,7 +43,7 @@ struct DataPoint: Codable, FetchableRecord, MutablePersistableRecord { // MARK: - Database manager -final class Storage { +final class Storage: @unchecked Sendable { static let shared = Storage() private let dbQueue: DatabaseQueue diff --git a/main/ble.c b/main/ble.c index f48b41a..b2b2811 100644 --- a/main/ble.c +++ b/main/ble.c @@ -550,8 +550,12 @@ static void start_adv(void) struct ble_gap_adv_params params = {0}; params.conn_mode = BLE_GAP_CONN_MODE_UND; params.disc_mode = BLE_GAP_DISC_MODE_GEN; - ble_gap_adv_start(BLE_OWN_ADDR_PUBLIC, NULL, BLE_HS_FOREVER, - ¶ms, gap_event_cb, NULL); + int rc = ble_gap_adv_start(BLE_OWN_ADDR_PUBLIC, NULL, BLE_HS_FOREVER, + ¶ms, gap_event_cb, NULL); + if (rc) + printf("BLE: adv_start failed: %d\n", rc); + else + printf("BLE: advertising\n"); } static void on_sync(void)