Skip to content

Commit

Permalink
Added eval to transform incoming tlm msg from byte string to actual b…
Browse files Browse the repository at this point in the history
…ytes
Bruce Lai committed Sep 26, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ca8f1d3 commit ae9d351
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ait/gui/__init__.py
Original file line number Diff line number Diff line change
@@ -276,6 +276,7 @@ def process(self, input_data, topic=None):
raise ValueError('Topic of received message not recognized as telem or log stream.')

def process_telem_msg(self, msg):
msg = eval(msg)
msg = pickle.loads(msg)
if playback.on == False:
Sessions.addTelemetry(msg[0], msg[1])

0 comments on commit ae9d351

Please sign in to comment.