Update bds40.py
This commit is contained in:
parent
edbfdc68de
commit
a872cd253e
@ -48,6 +48,12 @@ def is40(msg):
|
||||
if wrongstatus(d, 27, 28, 39):
|
||||
return False
|
||||
|
||||
if wrongstatus(d, 48, 49, 51):
|
||||
return False
|
||||
|
||||
if wrongstatus(d, 54, 55, 56):
|
||||
return False
|
||||
|
||||
# bits 40-47 and 52-53 shall all be zero
|
||||
|
||||
if bin2int(d[39:47]) != 0:
|
||||
@ -56,6 +62,7 @@ def is40(msg):
|
||||
if bin2int(d[51:53]) != 0:
|
||||
return False
|
||||
|
||||
|
||||
return True
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user