diff --git a/InfiniLink/BLE/BLEUpdateHandler.swift b/InfiniLink/BLE/BLEUpdateHandler.swift index 923bd03..7040544 100644 --- a/InfiniLink/BLE/BLEUpdateHandler.swift +++ b/InfiniLink/BLE/BLEUpdateHandler.swift @@ -36,6 +36,9 @@ struct BLEUpdatedCharacteristicHandler { } func handleUpdates(characteristic: CBCharacteristic, peripheral: CBPeripheral) { + // TODO: Fix hang + weatherController.updateWeatherData(ignoreTimeLimits: false) + switch characteristic.uuid { case bleManagerVal.cbuuidList.musicControl: let musicControl = [UInt8](characteristic.value!) @@ -85,10 +88,5 @@ struct BLEUpdatedCharacteristicHandler { default: break } - - // Will hang if network connection is not available - if NetworkManager.shared.isConnected { - weatherController.updateWeatherData(ignoreTimeLimits: false) - } } } diff --git a/InfiniLink/Core/.DS_Store b/InfiniLink/Core/.DS_Store new file mode 100644 index 0000000..4320624 Binary files /dev/null and b/InfiniLink/Core/.DS_Store differ diff --git a/InfiniLink/DFU/DownloadManager.swift b/InfiniLink/DFU/DownloadManager.swift index 08a185d..4b43760 100644 --- a/InfiniLink/DFU/DownloadManager.swift +++ b/InfiniLink/DFU/DownloadManager.swift @@ -205,7 +205,7 @@ class DownloadManager: NSObject, ObservableObject { self.loadingResults = false } catch { self.loadingResults = false - print("ERROR with workflow runs: \(error)") + print("ERROR with pull requests: \(error)") DebugLogManager.shared.debug(error: "JSON Decoding Error: \(error)", log: .app, date: Date()) } } @@ -269,10 +269,7 @@ class DownloadManager: NSObject, ObservableObject { do { let artifacts = try JSONDecoder().decode(ArtifactsResponse.self, from: data) - self.artifacts = [] - for artifact in artifacts.artifacts { - self.artifacts.append(artifact) - } + self.artifacts = artifacts.artifacts self.loadingArtifacts = false } catch { diff --git a/InfiniLink/linkdatamodel.bak/.DS_Store b/InfiniLink/linkdatamodel.bak/.DS_Store new file mode 100644 index 0000000..e7e5c87 Binary files /dev/null and b/InfiniLink/linkdatamodel.bak/.DS_Store differ