Skip to content

Commit

Permalink
Merge pull request #2 from brian7704/main
Browse files Browse the repository at this point in the history
Fix for TIS-B error
  • Loading branch information
ampledata authored Jan 26, 2024
2 parents 6b0c8e6 + edf714d commit eaa53e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aircot/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def adsb_to_cot_type(
# ADS-B track injected by the FAA via the ADS-B rebroadcast, usually FAA Secondary Radar Mode A/C tracks for safety
# and ground vehicles
if isinstance(icao, str):
icao = int(f"0x{icao.replace('~', 'TIS-B_')}", 16)
icao = int(f"0x{icao.replace('~', '')}", 16)
elif isinstance(icao, int):
icao = icao

Expand Down

0 comments on commit eaa53e8

Please sign in to comment.