Skip to content

Commit ac401c6

Browse files
committed
Clean up
1 parent 3673a43 commit ac401c6

4 files changed

Lines changed: 5 additions & 10 deletions

File tree

InfiniLink/BLE/BLEUpdateHandler.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ struct BLEUpdatedCharacteristicHandler {
3636
}
3737

3838
func handleUpdates(characteristic: CBCharacteristic, peripheral: CBPeripheral) {
39+
// TODO: Fix hang
40+
weatherController.updateWeatherData(ignoreTimeLimits: false)
41+
3942
switch characteristic.uuid {
4043
case bleManagerVal.cbuuidList.musicControl:
4144
let musicControl = [UInt8](characteristic.value!)
@@ -85,10 +88,5 @@ struct BLEUpdatedCharacteristicHandler {
8588
default:
8689
break
8790
}
88-
89-
// Will hang if network connection is not available
90-
if NetworkManager.shared.isConnected {
91-
weatherController.updateWeatherData(ignoreTimeLimits: false)
92-
}
9391
}
9492
}

InfiniLink/Core/.DS_Store

6 KB
Binary file not shown.

InfiniLink/DFU/DownloadManager.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class DownloadManager: NSObject, ObservableObject {
205205
self.loadingResults = false
206206
} catch {
207207
self.loadingResults = false
208-
print("ERROR with workflow runs: \(error)")
208+
print("ERROR with pull requests: \(error)")
209209
DebugLogManager.shared.debug(error: "JSON Decoding Error: \(error)", log: .app, date: Date())
210210
}
211211
}
@@ -269,10 +269,7 @@ class DownloadManager: NSObject, ObservableObject {
269269
do {
270270
let artifacts = try JSONDecoder().decode(ArtifactsResponse.self, from: data)
271271

272-
self.artifacts = []
273-
for artifact in artifacts.artifacts {
274-
self.artifacts.append(artifact)
275-
}
272+
self.artifacts = artifacts.artifacts
276273

277274
self.loadingArtifacts = false
278275
} catch {
6 KB
Binary file not shown.

0 commit comments

Comments
 (0)