From ac401c6e081c2751a59a83124fa366ea6b5a04bf Mon Sep 17 00:00:00 2001 From: liamcharger Date: Fri, 8 Mar 2024 12:25:06 -0500 Subject: [PATCH] Clean up --- InfiniLink/BLE/BLEUpdateHandler.swift | 8 +++----- InfiniLink/Core/.DS_Store | Bin 0 -> 6148 bytes InfiniLink/DFU/DownloadManager.swift | 7 ++----- InfiniLink/linkdatamodel.bak/.DS_Store | Bin 0 -> 6148 bytes 4 files changed, 5 insertions(+), 10 deletions(-) create mode 100644 InfiniLink/Core/.DS_Store create mode 100644 InfiniLink/linkdatamodel.bak/.DS_Store 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 0000000000000000000000000000000000000000..43206240e9fb0c47a4af965f7efbf7c402ed37e7 GIT binary patch literal 6148 zcmeHKyGjE=6upxy7!)C;<^DqO2iCBHSP3aaQHXhv2w6Ay=%=%>u(I(ZY^?39RPYzH z&p&wX+%fLBNlKA$Zo+9~E#fKJ8FW8TEtrw{m|7!qImu%hR+o$~*A!VlX*)d)^A;y@m1d zu&_2%Z&8YITGXdY{7&hN26Pe3Pshz!IYl13cOQ?RFOElPtStZGvnVg%MV5K3&^~yb zfY%Us9Nx!xr^sl2R>v(77W3FoN3|uKAOKYhsUy zM=OX3%t$FvN{v5a7%7K8_IZg%D=6h;+{_rq&ush&#kkqwk6k*ML{NKGKotlTsLE}f z_y6tr=l`%s?^FR*V5t-^QQAuRutGev#Ob)E<1X9 zET3OqkGG$r{PrBH>yPV@|9>D92n9lcf1?0;wjkRx4j&4H0-?ZK0r@^8m~igg8tbP6 zPOku9IYufl*0U5iNdTNXx5kJ7Y^7i;Wxryul_Q=!FL!Q@t(;ijjCuUc>^BtllN={a zC(ez-hXSF%rUE^7Z|HvnZZIfl%O2DZu?=T1>Dc@2#E1Nv}