Skip to content

Commit

Permalink
Use new function for getting pkt defn in openmct endpoint (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
aywaldron authored and Futabay committed May 19, 2020
1 parent 11855c9 commit a074583
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ait/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,11 +692,7 @@ def handle():
while not wsock.closed:
try:
uid, data = session.telemetry.popleft(timeout=30)
pkt_defn = None
for k, v in tlmdict.iteritems():
if v.uid == uid:
pkt_defn = v
break
pkt_defn = getPacketDefn(uid)

wsock.send(json.dumps({
'packet': pkt_defn.name,
Expand Down

0 comments on commit a074583

Please sign in to comment.