mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Set to to empty node number for positions sent to a channel
This commit is contained in:
parent
694337d776
commit
84f301c7e3
1 changed files with 5 additions and 1 deletions
|
|
@ -1011,7 +1011,11 @@ class BLEManager: NSObject, CBPeripheralDelegate, MqttClientProxyManagerDelegate
|
|||
}
|
||||
|
||||
var meshPacket = MeshPacket()
|
||||
meshPacket.to = UInt32(destNum)
|
||||
if destNum < 9 {
|
||||
meshPacket.to = emptyNodeNum
|
||||
} else {
|
||||
meshPacket.to = UInt32(destNum)
|
||||
}
|
||||
meshPacket.from = UInt32(fromNodeNum)
|
||||
var dataMessage = DataMessage()
|
||||
dataMessage.payload = try! positionPacket.serializedData()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue