Merge pull request #121 from Flyer350/patch-9

Update bds20.py
This commit is contained in:
Junzi Sun 2022-04-18 11:28:15 +02:00 committed by GitHub
commit e7edba9e25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,9 +24,11 @@ def is20(msg):
if d[0:8] != "00100000":
return False
cs = cs20(msg)
# allow empty callsign
if common.bin2int(d[8:56]) == 0
return True
if "#" in cs:
if "#" in cs20(msg):
return False
return True