Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 55a993b

Browse files
committed
Pass kwargs through in monkey-patched sendfn
1 parent 6babb54 commit 55a993b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dronekit/mavlink.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def __init__(self, ip, baud=115200, target_system=0, source_system=255, use_nati
5252
# Monkey-patch MAVLink object for fix_targets.
5353
sendfn = self.master.mav.send
5454

55-
def newsendfn(mavmsg):
55+
def newsendfn(mavmsg, **kwargs):
5656
self.fix_targets(mavmsg)
57-
return sendfn(mavmsg)
57+
return sendfn(mavmsg, kwargs)
5858

5959
self.master.mav.send = newsendfn
6060

0 commit comments

Comments
 (0)