From cc4ad6d618e54cfde9c5d59e73dfa57d6f33c4e4 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Wed, 28 Jul 2021 18:23:30 +0200 Subject: [PATCH] fix: fixed BLE battery level update (wrong check) (#551) --- Modules/Bluetooth/readers.swift | 2 +- Stats/Supporting Files/Info.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Bluetooth/readers.swift b/Modules/Bluetooth/readers.swift index 08d7d9eb663..16ad6a82169 100644 --- a/Modules/Bluetooth/readers.swift +++ b/Modules/Bluetooth/readers.swift @@ -64,7 +64,7 @@ class BluetoothDelegate: NSObject, CBCentralManagerDelegate, CBPeripheralDelegat if let idx = self.devices.firstIndex(where: { $0.uuid == cache.uuid }) { self.devices[idx].RSSI = rssi - if cache.batteryLevel.isEmpty { + if !cache.batteryLevel.isEmpty { self.devices[idx].batteryLevel = cache.batteryLevel } self.devices[idx].isConnected = device.isConnected() diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index 5ceef5fbb41..356356edf66 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 292 + 293 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType