issues
search
junzis
/
pyModeS
Python decoder for Mode S and ADS-B signals
GNU General Public License v3.0
527
stars
151
forks
source link
Bds62 baro rounding fix
#132
Closed
JWyman482
closed
1 year ago
JWyman482
commented
1 year ago
Reference Issue
Issue "Type Error" #128
Problem(s)
The
round(baro, 1)
call on line 277 in bds62.py was being called when
baro
was 'None'.
(minor) Padding in
_print()
wasn't sufficient for the
baro
readout
(minor) Output would display units when value was 'None.'
Fix Actions Taken
Wrapped the
else
clause with the round call so it was only called if
baro
held a numeric value.
Updated the output padding from 20 chars to 28 chars
Added a conditional to remove the "millibars" if
baro
is 'None.'
Reference Issue
Problem(s)
round(baro, 1)
call on line 277 in bds62.py was being called whenbaro
was 'None'._print()
wasn't sufficient for thebaro
readoutFix Actions Taken
else
clause with the round call so it was only called ifbaro
held a numeric value.baro
is 'None.'