mirror of
https://github.com/meshtastic/python.git
synced 2026-04-21 15:34:04 -04:00
mesh_interface: sendPosition: add hopLimit
This commit is contained in:
@@ -587,6 +587,7 @@ class MeshInterface: # pylint: disable=R0902
|
|||||||
wantAck: bool = False,
|
wantAck: bool = False,
|
||||||
wantResponse: bool = False,
|
wantResponse: bool = False,
|
||||||
channelIndex: int = 0,
|
channelIndex: int = 0,
|
||||||
|
hopLimit: Optional[int]=None,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Send a position packet to some other node (normally a broadcast)
|
Send a position packet to some other node (normally a broadcast)
|
||||||
@@ -623,6 +624,7 @@ class MeshInterface: # pylint: disable=R0902
|
|||||||
wantResponse=wantResponse,
|
wantResponse=wantResponse,
|
||||||
onResponse=onResponse,
|
onResponse=onResponse,
|
||||||
channelIndex=channelIndex,
|
channelIndex=channelIndex,
|
||||||
|
hopLimit=hopLimit,
|
||||||
)
|
)
|
||||||
if wantResponse:
|
if wantResponse:
|
||||||
self.waitForPosition()
|
self.waitForPosition()
|
||||||
|
|||||||
Reference in New Issue
Block a user