Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcharger committed Mar 8, 2024
1 parent 3673a43 commit ac401c6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
8 changes: 3 additions & 5 deletions InfiniLink/BLE/BLEUpdateHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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!)
Expand Down Expand Up @@ -85,10 +88,5 @@ struct BLEUpdatedCharacteristicHandler {
default:
break
}

// Will hang if network connection is not available
if NetworkManager.shared.isConnected {
weatherController.updateWeatherData(ignoreTimeLimits: false)
}
}
}
Binary file added InfiniLink/Core/.DS_Store
Binary file not shown.
7 changes: 2 additions & 5 deletions InfiniLink/DFU/DownloadManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
Expand Down Expand Up @@ -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 {
Expand Down
Binary file added InfiniLink/linkdatamodel.bak/.DS_Store
Binary file not shown.

0 comments on commit ac401c6

Please sign in to comment.