Skip to content

Commit

Permalink
fix: fixed BLE battery level update (wrong check) (exelban#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban authored and gmcinalli committed Feb 28, 2022
1 parent 238c2f8 commit cc4ad6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/Bluetooth/readers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion Stats/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit cc4ad6d

Please sign in to comment.