Skip to content

Commit

Permalink
fix vertical rate bug in BDS60
Browse files Browse the repository at this point in the history
junzis committed Mar 8, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 2b1f2a5 commit fd8bb83
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pyModeS/ehs.py
Original file line number Diff line number Diff line change
@@ -336,7 +336,7 @@ def isBDS44(msg, rev=False):
# Bits 1-4 are reserved and should be zero
if util.bin2int(d[0:4]) != 0:
result &= False

if not result:
return False

@@ -794,7 +794,7 @@ def vr53(msg):
if d[46] == '0':
return None

sign = d[47] # 1 -> minus
sign = int(d[47]) # 1 -> minus
value = util.bin2int(d[48:56])

if sign:
@@ -925,7 +925,7 @@ def vr60baro(msg):
if d[34] == '0':
return None

sign = d[35] # 1 -> minus
sign = int(d[35]) # 1 -> minus
value = util.bin2int(d[36:45])

if sign:
@@ -949,7 +949,7 @@ def vr60ins(msg):
if d[45] == '0':
return None

sign = d[46] # 1 -> minus
sign = int(d[46]) # 1 -> minus
value = util.bin2int(d[47:56])

if sign:
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
toxworkdir=/tmp/tox
envlist = py26,py27,py35
envlist = py2,py3
[testenv]
deps=pytest
commands=py.test

0 comments on commit fd8bb83

Please sign in to comment.