fix corner case

This commit is contained in:
Xavier Olive 2022-05-31 09:55:07 +02:00 committed by GitHub
parent c02414417d
commit b36540e2a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,10 +81,10 @@ def airborne_velocity(msg, source=False):
spd = common.bin2int(mb[25:35]) spd = common.bin2int(mb[25:35])
spd = None if spd == 0 else spd - 1
if subtype == 4: # Supersonic if subtype == 4: # Supersonic
spd *= 4 spd *= 4
spd = None if spd == 0 else spd - 1
if mb[24] == "0": if mb[24] == "0":
spd_type = "IAS" spd_type = "IAS"