mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Only send battery nofifications from the local node
This commit is contained in:
parent
98512e8cc5
commit
a8149e0c66
1 changed files with 1 additions and 1 deletions
|
|
@ -757,7 +757,7 @@ func telemetryPacket(packet: MeshPacket, connectedNode: Int64, context: NSManage
|
|||
// Connected Device Metrics
|
||||
// ------------------------
|
||||
// Low Battery notification
|
||||
if connectedNode != Int64(packet.from) {
|
||||
if connectedNode == Int64(packet.from) {
|
||||
if UserDefaults.lowBatteryNotifications && telemetry.batteryLevel > 0 && telemetry.batteryLevel < 4 {
|
||||
let manager = LocalNotificationManager()
|
||||
manager.notifications = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue