Fix iterator in TCAS resolution advisories.

This commit is contained in:
Nick Foster 2012-10-17 23:03:19 -07:00
parent fdaa496b8f
commit 3815ee17e1

View File

@ -397,13 +397,13 @@ class parse:
ara = data["ara"]
#check to see which bits are set
resolutions = ""
for bit, name in ara_bits:
for bit in ara_bits:
if ara & (1 << (54-bit)):
resolutions += " " + name
resolutions += " " + ara_bits[bit]
complements = ""
for bit, name in rac_bits:
for bit in rac_bits:
if rac & (1 << (58-bit)):
complements += " " + name
complements += " " + rac_bits[bit]
return (resolutions, complements)
#rat is 1 if resolution advisory terminated <18s ago