junzis / pyModeS

Python decoder for Mode S and ADS-B signals
GNU General Public License v3.0
546 stars 153 forks source link

Fix UnboundLocalError in airborne_velocity when velocity is zero #112

Closed maranov closed 3 years ago

maranov commented 3 years ago

Hi, this fixes trk not being defined in case the branch on line 43 is executed.

junzis commented 3 years ago

Thanks, @maranov!