Skip to content

Commit cfb0a9d

Browse files
roman-dvorakpeterbarker
authored andcommitted
message names in list
1 parent bf5004a commit cfb0a9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dronekit/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,8 +1142,7 @@ def listener(vehicle, name, m):
11421142
# All keys are strings.
11431143
self._channels = Channels(self, 8)
11441144

1145-
@self.on_message('RC_CHANNELS_RAW')
1146-
@self.on_message('RC_CHANNELS')
1145+
@self.on_message(['RC_CHANNELS_RAW', 'RC_CHANNELS'])
11471146
def listener(self, name, m):
11481147
def set_rc(chnum, v):
11491148
'''Private utility for handling rc channel messages'''

0 commit comments

Comments
 (0)