fix: fixed BLE battery level update (wrong check) (#551)

This commit is contained in:
Serhiy Mytrovtsiy
2021-07-28 18:23:30 +02:00
parent cba36e70f8
commit cb7567d540
2 changed files with 2 additions and 2 deletions

View File

@@ -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()

View File

@@ -17,7 +17,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>292</string>
<string>293</string>
<key>Description</key>
<string>Simple macOS system monitor in your menu bar</string>
<key>LSApplicationCategoryType</key>