mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-20 11:28:58 +08:00
[python] fix messages_tool
Don't put empty strings in values. This was a problem if IVY messages have a trailing whitespace, should be fixed where the bogus messages are generated as well...
This commit is contained in:
@@ -49,7 +49,7 @@ class IvyMessagesInterface():
|
||||
try:
|
||||
ac_id = int(data[0])
|
||||
name = data[1]
|
||||
values = data[2:]
|
||||
values = filter(None, data[2:])
|
||||
self.callback(ac_id, name, values)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user