@@ -720,14 +720,14 @@ def sendWaypoint(
720
720
name ,
721
721
description ,
722
722
expire : int ,
723
- id : Optional [int ] = None ,
723
+ waypoint_id : Optional [int ] = None ,
724
724
latitude : float = 0.0 ,
725
725
longitude : float = 0.0 ,
726
726
destinationId : Union [int , str ] = BROADCAST_ADDR ,
727
727
wantAck : bool = True ,
728
728
wantResponse : bool = False ,
729
729
channelIndex : int = 0 ,
730
- ):
730
+ ): # pylint: disable=R0913
731
731
"""
732
732
Send a waypoint packet to some other node (normally a broadcast)
733
733
@@ -738,14 +738,14 @@ def sendWaypoint(
738
738
w .name = name
739
739
w .description = description
740
740
w .expire = expire
741
- if id is None :
741
+ if waypoint_id is None :
742
742
# Generate a waypoint's id, NOT a packet ID.
743
743
# same algorithm as https://github.com/meshtastic/js/blob/715e35d2374276a43ffa93c628e3710875d43907/src/meshDevice.ts#L791
744
744
seed = secrets .randbits (32 )
745
745
w .id = math .floor (seed * math .pow (2 , - 32 ) * 1e9 )
746
746
logging .debug (f"w.id:{ w .id } " )
747
747
else :
748
- w .id = id
748
+ w .id = waypoint_id
749
749
if latitude != 0.0 :
750
750
w .latitude_i = int (latitude * 1e7 )
751
751
logging .debug (f"w.latitude_i:{ w .latitude_i } " )
@@ -773,7 +773,7 @@ def sendWaypoint(
773
773
774
774
def deleteWaypoint (
775
775
self ,
776
- id : int ,
776
+ waypoint_id : int ,
777
777
destinationId : Union [int , str ] = BROADCAST_ADDR ,
778
778
wantAck : bool = True ,
779
779
wantResponse : bool = False ,
@@ -788,7 +788,7 @@ def deleteWaypoint(
788
788
can be used to track future message acks/naks.
789
789
"""
790
790
p = mesh_pb2 .Waypoint ()
791
- p .id = id
791
+ p .id = waypoint_id
792
792
p .expire = 0
793
793
794
794
if wantResponse :
0 commit comments