mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Smart position for packets sent from phone to device
This commit is contained in:
parent
3bbc2cf4a1
commit
6361ff3385
4 changed files with 373 additions and 364 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -339,7 +339,7 @@ struct ChannelMessageList: View {
|
|||
focusedField = nil
|
||||
replyMessageId = 0
|
||||
if sendPositionWithMessage {
|
||||
if bleManager.sendPosition(destNum: Int64(channel.index), wantResponse: false) {
|
||||
if bleManager.sendPosition(destNum: Int64(channel.index), wantResponse: false, smartPosition: false) {
|
||||
print("Location Sent")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -345,7 +345,7 @@ struct UserMessageList: View {
|
|||
focusedField = nil
|
||||
replyMessageId = 0
|
||||
if sendPositionWithMessage {
|
||||
if bleManager.sendPosition(destNum: user.num, wantResponse: true) {
|
||||
if bleManager.sendPosition(destNum: user.num, wantResponse: true, smartPosition: false) {
|
||||
print("Location Sent")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ struct PositionConfig: View {
|
|||
Button(buttonText) {
|
||||
|
||||
if fixedPosition {
|
||||
_ = bleManager.sendPosition(destNum: node!.num, wantResponse: true)
|
||||
_ = bleManager.sendPosition(destNum: node!.num, wantResponse: true, smartPosition: false)
|
||||
}
|
||||
let connectedNode = getNodeInfo(id: bleManager.connectedPeripheral.num, context: context)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue